LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2004, 08:49 PM   #1
botzy
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Rep: Reputation: 0
ls --color=none


Hello everyone. My situation has to do with my ls command and the color scheme of its output. It can be very annoying for me, trying to determine a directory from a file when I can not even read the name, because of the color format it outputs. As a work around, I found (From doing a man ls) that I can use the command with argument "--color=none" to fix it, but I would like it to do it on its own.

Typeing out ls --color=none becomes annoying after a while. I did a little research, and I think it should have something to do with my .bashrc file? I am not sure, this is why I am here.

The following is my box setup:

Distro = FC 2
Kernel = 2.6.x
WM = XFCE
Terminal = gnome-terminal
Profile to change = (Myself, not root)

If there is anything else I need to give you, please do ask. This will be nice to have fixed, thank you in advance for your help.
 
Old 09-14-2004, 09:13 PM   #2
realjustin
Member
 
Registered: Aug 2004
Location: /dev/null
Distribution: Slack 10, Debian
Posts: 99

Rep: Reputation: 15
You are indeed correct that it is your .bashrc, or possibly your .bash_profile. Edit your .bashrc file and look for a line similar to

alias ls="ls --color=always"

If you find an alias ls line, just remove the line. Check in the .bash_profile for a similar line. You may even want to try an alias of

alias ls="ls --color=none"

Note that it does not take effect until you re-login to that terminal, so you must log out or close the xterm window and reopen.
 
Old 09-14-2004, 09:44 PM   #3
botzy
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Well, I knew that part, but thank you in any event. After giving a little more looking into the structure of FC2, I found it can be done by editing this file:

/etc/profile.d/colorls.sh

Do just as we talked about...change it to

ls --color=never

Good as gold, when you start the next teminal.
 
  


Reply



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
Color Depth, True Color, How to pacranch Amigo 2 04-09-2005 05:16 AM
[COLOR=red]ENCORE WIRELESS PCI Card 802.11b [/COLOR] enrique145 Linux - Hardware 3 07-07-2004 02:31 PM
bsetroot -gradient texture -from color -to color patpawlowski Linux - General 3 02-10-2004 01:51 PM
ls --color 'color change' ekdya Linux - General 1 10-06-2003 03:47 PM
[COLOR=seagreen]HELP-want to use Kickstart/rh7.2 on a notebook[/COLOR] verbali Linux - Newbie 1 05-13-2002 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:02 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
Open Source Consulting | Domain Registration