I've booted up as root in CLI without any GUI. How do I change the text colour (forground colour)?
Asked
Active
Viewed 621 times
1
-
4Possible duplicate of [Is it possible to change text console (VT, framebuffer) foreground color?](http://askubuntu.com/questions/277599/is-it-possible-to-change-text-console-vt-framebuffer-foreground-color) – Anwar Sep 08 '16 at 04:38
-
if the above linked question isn't same, edit the question including the reason how. – Anwar Sep 08 '16 at 04:40
1 Answers
2
In the Terminal aka CLI (Command Line Interface) different colours are already used to represent file types, directories and message highlighting. 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 the output from them.
Do do this type:
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 like the result.
WinEunuuchs2Unix
- 99,709
- 34
- 237
- 401