Linux kernel & processes Shell

CLI or Terminal goes to be colour

How to switch on a colored terminal by CLI?

Edit user’s shell config file

~$ nano ~/.bashrc

Find out the string with the commented parameter ” force_color_prompt ” and uncomment them with value yes

# uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt force_color_prompt=yes if [ -n “$force_color_prompt” ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then # We have color support;

Save and close .bashrc

Log off and log in again to see changes

This image has an empty alt attribute; its file name is Screenshot_9.png

Have You More questions? Please be free to ask us your questions in the channel 🙂

Leave a Reply