Views:
814
Votes: 2
Tags:
command-line
eyesome
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/822359
Title:
How do you change the text colour in CLI?
ID:
/2016/09/08/How-do-you-change-the-text-colour-in-CLI_
Created:
September 8, 2016
Edited: February 1, 2025
Upload:
February 15, 2025
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
The Terminal aka CLI (Command Line Interface) already uses different colours to represent file types and directories. I wouldn’t want to override these colours.
However, you can change the colour of the command prompt which makes it easier to distinguish between the commands you typed and command output.
First, edit the file:
gedit ~/.bashrc
Then search for this block of text:
# 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
Remove the # in front of force_color_prompt=yes
and save the file.
I’ve done this on my system and the result is eyesome (looks good).