LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ls --color=none (https://www.linuxquestions.org/questions/linux-software-2/ls-color%3Dnone-230699/)

botzy 09-14-2004 08:49 PM

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.

realjustin 09-14-2004 09:13 PM

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.

botzy 09-14-2004 09:44 PM

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.


All times are GMT -5. The time now is 01:14 AM.