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="mac57" data-source="post: 335892" data-attributes="member: 17052"><p>Just a quick note to folks with a *nix background who may be using Terminal.app and are frustrated by the lack of color coding on the output. The BSD version of ls, which Mac OS X uses, is a bit different from the Linux versions most of us will be familiar with, and the usual /etc solutions don't work. </p><p></p><p>To get color output (directories in blue, executables in red, and so on), add the following alias to your .bash_profile:</p><p></p><p>[CODE]alias ls="ls -FG"</p><p>[/CODE]</p><p>The "F" part causes it to add slashes to the directories it lists, and the "G" part enables the color coding per the above.</p><p></p><p>...and who said the command line wasn't obvious?? :dive:</p></blockquote><p></p>
[QUOTE="mac57, post: 335892, member: 17052"] Just a quick note to folks with a *nix background who may be using Terminal.app and are frustrated by the lack of color coding on the output. The BSD version of ls, which Mac OS X uses, is a bit different from the Linux versions most of us will be familiar with, and the usual /etc solutions don't work. To get color output (directories in blue, executables in red, and so on), add the following alias to your .bash_profile: [CODE]alias ls="ls -FG" [/CODE] The "F" part causes it to add slashes to the directories it lists, and the "G" part enables the color coding per the above. ...and who said the command line wasn't obvious?? :dive: [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Color "ls" Output in Terminal
Top