How to color-code your terminal output from “ls” for files and directories
Published in
3 min readSep 17, 2021
If you’re a regular user of the command line, like Terminal in MacOS, then you have most certainly used the ls
command which allows you to see a list of the files and folders in a given directory.
To reinforce that, IBM documentation describes ls
as the following:
The ls command writes to standard output the…