default behavior for ls (list) command???

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
We just put on a new cPanel server. The other cPanel servers we manage automatically display dot files, just with the "ls" and no other options, i.e. without having to ls -a

Does anyone know where I can set the prefs for this so just a straight ls will list all the files including the dot files?

Thanks very much for any response here with this.
 

WebScHoLaR

Well-Known Member
Dec 14, 2005
508
3
168
Planet Earth
Check /root/.bashrc file and there you can define the alias for any command such as:

alias ls='ls -a'

In this way, you only have to enter ls but as ls is the alias of ls -a so you will see the dot files too.