Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSH File type colors

Status
Not open for further replies.

rburke

Programmer
Apr 28, 2002
426
US
Hello all,

This is a great forum so I thought I'd post my question here. My system is Red Hat 8.0 on a Pentium 4 with 1 GB RAM. My question is about cahnging the colors for differnet types of files, directories, etc. I have another machine with Red Hat 7.3 and I'm happy with the colors that came with it. But with 8.0 the "blue" that depicts a directory by default is so dark that it almost isn't viewable. You have to stare at it a minute to let your eyes get used to it. Is there anyway to change this? I found the /etc/DIR_COLORS file, but when I changed something it never changed... not even when I restarted. Has anyone had this problem or know how to fix it? Thanks for all your help

Burke
 
You need to change aliases.

If you type alias, you will find that ls is an alias for ls -l --color=tty. You could change this to remove the colours (remove the --color=tty switch) or I believe you can change them (you will have to man ls).

The simple fix is to "unalias ls" from the command prompt...


HTH - ChrisCW
 
Also - I have just tested, if you leave things alone, edit /etc/DIR_COLORS and change the line DIR 01;34 to DIR 04;32, then log out and log in again (no need to reboot) it will look a lot easier to read.

Look up terminal text colour codes on the web!

ChrisCW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top