LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Turn off colours (https://www.linuxquestions.org/questions/linux-newbie-8/turn-off-colours-81347/)

ballus 08-12-2003 02:33 PM

Turn off colours
 
Guru's

How do I turn off the colours on RH linux xterm for the ls command and with in vi as well.

Thanks

contrasutra 08-12-2003 02:39 PM

Well, for LS, look in your:

~/.bashrc file and look for something like:

alias ls='ls --color=auto'


and remove or comment it out.

dav1x 08-12-2003 03:02 PM

in /etc/profile

or in your /home/user/.bash_profile

add

alias ls=\ls

alias vi=\vi

this will use the old version of ls and vi and not the new "improved" ones

or you can type those command at a console... but unless you add to the bash_profile or the /etc/profile the changes will not stay.

/etc/profile for everyone

.bash_profile for specific user

GL

ballus 08-12-2003 03:05 PM

That's not there in any of the .bashrc files.

dav1x 08-12-2003 03:08 PM

its a redhat thing

its not listed in the .bashrc
try it

type in the alias command then do a ls
it works...

ballus 08-12-2003 03:12 PM

That works. setting it to \ls and \vi in profile.


All times are GMT -5. The time now is 05:38 AM.