The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 769     Votes:  2 
Tag : command-line  
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
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


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.

⇧ Paste from clipboard into terminal with down-arrow, possible? :) Firefox hangs because sort-directories-first setting missing  ⇩