LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-12-2003, 02:33 PM   #1
ballus
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
Angry 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
 
Old 08-12-2003, 02:39 PM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Well, for LS, look in your:

~/.bashrc file and look for something like:

alias ls='ls --color=auto'


and remove or comment it out.
 
Old 08-12-2003, 03:02 PM   #3
dav1x
Member
 
Registered: Sep 2002
Posts: 50

Rep: Reputation: 15
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
 
Old 08-12-2003, 03:05 PM   #4
ballus
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
That's not there in any of the .bashrc files.
 
Old 08-12-2003, 03:08 PM   #5
dav1x
Member
 
Registered: Sep 2002
Posts: 50

Rep: Reputation: 15
its a redhat thing

its not listed in the .bashrc
try it

type in the alias command then do a ls
it works...
 
Old 08-12-2003, 03:12 PM   #6
ballus
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thumbs up

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


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
How to use colours in c++ ? twirl Programming 3 10-05-2005 10:09 PM
How to start, stop, turn on, and turn off deamons BuckRogers01 Debian 3 08-16-2005 09:39 AM
How to turn off Xserver in the gui and turn it off in the command line geminiviper Linux - Newbie 8 08-20-2004 08:05 AM
What do the colours mean in the terminal? alaskazimm Mandriva 2 07-04-2004 07:34 AM
bash colours devinWhalen Linux - Newbie 6 12-02-2003 10:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 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