Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

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

to

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
1  
~ 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 askubuntu.com/questions/218930/… –  TheKojuEffect Jan 29 '13 at 9:03
add comment

Your Answer

 
discard

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.