Show hidden files for default on Centos via ssh

joseluisq asked:

I have a VPS Server based on CentOS 6.4 (Final)

The inconvenience: When I log on via SSH (using root user) I can’t see hidden files, e.g I can’t see (for default) the .httaccess and others system similar files. (also in FTP)

Files exist, because I used ls -a and I can see all files, but I think that isn’t idea.

Similarly I can’t see hidden files on FTP (I use vsFTPd 2.2.2)

Finally, for example my FTP directory has 757 permissions.

Any idea?

My answer:

Try creating a shell alias. For instance in bash:

alias ls='ls -a'

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.