Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As I am running commands in the terminal, some times when the resulted log is larg, I get lost looking for the command line it self.

And some times when I need to distinguish between logs of the previous command and logs of the command after ..

So, what's the recommended way to solve this issue? I thought about colors, but, I have no idea what to do or how to configure the terminal?

Is there another terminal which support colors, bold, or may be italic .. ??

share|improve this question
up vote 8 down vote accepted

To color each new command in terminal, you've to edit ~/.bashrc file. To do this,

gedit ~/.bashrc

Uncomment the line

# force_color_prompt=yes



Then, You can restart the terminal or do

. ~/.bashrc
share|improve this answer
so, do I have put the path for .bashrc? or ~ will find it? can you please explain what is the ~ ? – Samir Sabri Jan 29 '13 at 8:55
~ stands for home folder like / stands for root folder. – TheKojuEffect Jan 29 '13 at 8:57
thanks very much – Samir Sabri Jan 29 '13 at 8:59
can I change the default color for background and text? – Samir Sabri Jan 29 '13 at 9:00
I've not tried that yet as I'm happy with the default. But you can try… – TheKojuEffect Jan 29 '13 at 9:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.