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.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.