LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-09-2005, 12:03 AM   #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-09-2005, 12:05 AM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

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


Reply


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 03:20 AM
What is the command to change text color? BiO|Happy Mandriva 2 06-09-2004 03:54 PM
Changing color of command line interface JustinCoyan Slackware 1 05-28-2004 12:35 PM
ls command line, color and wildcards ioio85 Linux - Newbie 1 05-13-2004 06:01 AM
need to know system command to change text color Mr_ss Linux - General 2 06-22-2001 11:13 AM


All times are GMT -5. The time now is 08:36 PM.

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