- Joined
- Apr 29, 2006
- Messages
- 4,576
- Reaction score
- 378
- Points
- 83
- Location
- St. Somewhere
- Your Mac's Specs
- Mac Studio, M1 Max, 32 GB RAM, 2 TB SSD
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:
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:
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"
...and who said the command line wasn't obvious?? :dive: