LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Change default ls behavior (http://www.linuxquestions.org/questions/linux-newbie-8/change-default-ls-behavior-195800/)

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.

Thanks.
--
bgfay

pointyman 06-20-2004 08:45 PM

Hi.

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

Dave

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.
--
bgfay

ppuru 06-21-2004 06:28 AM

If you are using RedHat / Fedora, you can use

#ll

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 01:27 AM.