-   Linux - Newbie (
-   -   Change default ls behavior (

bgfay 06-20-2004 08:41 PM

Change default ls behavior
I know that this is simple because I think I did it years ago when I first tried Linux. What I want to do is to get the command ls to display in the style of ls -l (that's L) by default. I thought that it had something to do with .bashrc, but I really don't want to mess up my system by doing things willy-nilly.

I figure this is an easy one, so feel free to call me stupid. I should know this.


pointyman 06-20-2004 08:45 PM


In .bashrc, put in the line:
alias ls='ls -l'


bgfay 06-21-2004 06:14 AM

Thank you. I knew that it was something obvious. I've made the change and all is well.

ppuru 06-21-2004 06:28 AM

If you are using RedHat / Fedora, you can use


which is essentially an alias for ls -l

whansard 06-21-2004 06:48 AM

don't you want --color too

bgfay 06-21-2004 09:04 PM

Sure, I'll give that a shot too. Thanks.

All times are GMT -5. The time now is 04:27 PM.