Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-08-2005, 11:03 PM   #1
Kevin Tough
LQ Newbie
Registered: Aug 2005
Posts: 18

Rep: Reputation: 1
Command ls --color=always, can always be always

When I enter the command "ls --color=always" I get a listing using color. The next time I use ls without the color option the listing is again in black and white. Is there a default file or something somewhere a person can edit and change the default behaviour of the command "ls".
Old 09-08-2005, 11:05 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
in your ~/.bashrc file put
alias ls='ls --color=auto'
or as you say
alias ls='ls --color=always'


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Prompt Color init_linux Linux - General 2 09-08-2005 02:20 AM
What is the command to change text color? BiO|Happy Mandriva 2 06-09-2004 02:54 PM
Changing color of command line interface JustinCoyan Slackware 1 05-28-2004 11:35 AM
ls command line, color and wildcards ioio85 Linux - Newbie 1 05-13-2004 05:01 AM
need to know system command to change text color Mr_ss Linux - General 2 06-22-2001 10:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration