Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Color "ls" Output in Terminal
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="cradom" data-source="post: 336337" data-attributes="member: 305283"><p>Straight from "man ls":</p><p></p><p>The value of this variable describes what color to use</p><p> for which attribute when colors are enabled with</p><p> CLICOLOR. This string is a concatenation of pairs of the</p><p> format fb, where f is the foreground color and b is the</p><p> background color.</p><p></p><p> The color designators are as follows:</p><p></p><p> a black</p><p> b red</p><p> c green</p><p> d brown</p><p> e blue</p><p> f magenta</p><p> g cyan</p><p> h light grey</p><p> A bold black, usually shows up as dark grey</p><p> B bold red</p><p> C bold green</p><p> D bold brown, usually shows up as yellow</p><p> E bold blue</p><p> F bold magenta</p><p> G bold cyan</p><p> H bold light grey; looks like bright white</p><p> x default foreground or background</p><p></p><p> Note that the above are standard ANSI colors. The actual</p><p> display may differ depending on the color capabilities of</p><p> the terminal in use.</p><p></p><p> The order of the attributes are as follows:</p><p></p><p> 1. directory</p><p> 2. symbolic link</p><p> 3. socket</p><p> 4. pipe</p><p> 5. executable</p><p> 6. block special</p><p> 7. character special</p><p> 8. executable with setuid bit set</p><p> 9. executable with setgid bit set</p><p> 10. directory writable to others, with sticky bit</p><p> 11. directory writable to others, without sticky</p><p> bit</p><p></p><p> The default is "exfxcxdxbxegedabagacad", i.e. blue fore-</p><p> ground and default background for regular directories,</p><p> black foreground and red background for setuid executa-</p><p> bles, etc.</p></blockquote><p></p>
[QUOTE="cradom, post: 336337, member: 305283"] Straight from "man ls": The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color. The color designators are as follows: a black b red c green d brown e blue f magenta g cyan h light grey A bold black, usually shows up as dark grey B bold red C bold green D bold brown, usually shows up as yellow E bold blue F bold magenta G bold cyan H bold light grey; looks like bright white x default foreground or background Note that the above are standard ANSI colors. The actual display may differ depending on the color capabilities of the terminal in use. The order of the attributes are as follows: 1. directory 2. symbolic link 3. socket 4. pipe 5. executable 6. block special 7. character special 8. executable with setuid bit set 9. executable with setgid bit set 10. directory writable to others, with sticky bit 11. directory writable to others, without sticky bit The default is "exfxcxdxbxegedabagacad", i.e. blue fore- ground and default background for regular directories, black foreground and red background for setuid executa- bles, etc. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Color "ls" Output in Terminal
Top