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.

I want to change my gnome-terminal lines color by using commands.

I know how change it by going to profile and clicking

Profiles" - "Profile preferences" - "color" - "background color", but I want to use commands.

share|improve this question
    
Take a look at this file ss64.com/bash/dircolors.html and perhaps ss64.com/bash for all sorts of commands which may help –  SimplySimon Sep 17 '13 at 10:08

2 Answers 2

In the current version of gnome-terminal you can't change background and color when starting a new terminal It used to be with these options: --background <color> and --foreground <color>

Now you can start your terminal specifying the profile:

gnome-terminal --window-with-profile <your profile>

You can also edit the current profile using gconftool. for instance, to edit colors of the Default profile:


gconftool-2 --set "/apps/gnome-terminal/profiles/Default/foreground_color" --type string "#EEEEEEEEECEC"
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/background_color" --type string "#000000000000"
share|improve this answer

Terminal has limited options. Install Terminator, many available options, multiple windows. You can select background and font color. All done through preferences GUI interface.

Command Line

sudo apt-get update
sudo apt-get install terminator

Or, get it through the Software Center.

Preferences can also be set through command line, by editing the Terminator config file.

cd /.config/terminator/
gedit config

The manpage for all available options for editing are contained in this link.

share|improve this answer

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.