Stopping "ls" from doing "ls -la"
In OpenSUSE and SLES, I find it pretty anoying that ls has been aliased to “ls -la” for every user. For root I can see that it makes sense from a security standpoint so I can live with that but for regular users it’s really a pain. After all, whats the point of hidden files if they are never hidden?
Fixing this is easy. In /etc/bash.bashrc, find the alias line:
alias l='ls -alF'
and change it to:
alias l='ls -lF'
That solves the problem for regular users. If you want to fix it for root as well you also need to find the line:
LS_OPTIONS="-A -N $LS_OPTIONS -T 0"
and change it to:
LS_OPTIONS="-N $LS_OPTIONS -T 0"
Ahhh… that’s better.