chochem
11-12-2000, 01:03 AM
Is there any way to set what colors that ls will use when you turn on the "color" option? I checked out the man pages, but didn't see anything. Thanks all!
|
Click to See Complete Forum and Search --> : ls color changes chochem 11-12-2000, 01:03 AM Is there any way to set what colors that ls will use when you turn on the "color" option? I checked out the man pages, but didn't see anything. Thanks all! tminos 11-12-2000, 01:09 AM It should all be inside of the /etc/DIR_COLORS file. Strike 11-12-2000, 04:49 AM Or for user-specific changes, change your LS_COLORS environment variable: in bash-style shells: export LS_COLORS=... in csh-style shells: setenv LS_COLORS ... chadm1967 11-12-2000, 08:37 AM I'm glad chochem submitted this post.... When you enter 'ls' at the command line, why are certain files different colors? I searched the web for an answer a few months ago but couldn't find anything. So, I finally gave up. [This message has been edited by chadm1967 (edited 12 November 2000).] Strike 11-12-2000, 04:58 PM The colors are assigned by file type/extension. For example, most archived files (.tar, .gz, .bz2) will be red by default. Executable files will be green by default, directories will be dark blue, symlinks will be cyan, etc. It's all in the two things mentioned above - /etc/DIR_COLORS and the $LS_COLORS environment variable. justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |