How to turn on or off colors in bash
Q. How do I turn on or off file name colors in bash shell?
A. Most modern Linux distro comes with alias that defines colors for your file. However ls command is responsible for displaying color on screen for files, directories and other object.
By default, color is not used to distinguish types of files. You need to pass --color option to ls command.
Task: Turn off colors
Type the following command
$ ls --color=none
Or just remove alias with unalias command:
$ unalias ls
Task: Turn on colors
Use any of the following command:
$ ls --color=auto
$ ls --color=tty
You can add or remove ls alias from ~/.bash_profile or ~/.bashrc file.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- BASH Shell change the color of my shell prompt under Linux or UNIX
- Gnome Linux disable or turn off beep sound for Terminal, bash
- How to identify format and characteristics of image file
- Turn on or off color syntax highlighting in vi or vim
- How To Show Line Numbers In vi / vim Text Editor
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


Recent Comments
Today ~ 1 Comment
Today ~ 3 Comments
Today ~ 57 Comments
Yesterday ~ 9 Comments
Yesterday ~ 7 Comments