How to reset the terminal properties and preferences?

I fooled around with the colors and stuff, in the terminal, and now want to go back to the maroon and white default config of the the terminal. What files do I have to delete?

Asked By: theTuxRacer


In terminal click on the ‘Edit’ menu then ‘Profile Preferences’. It will pop up the ‘Editing Profile’ Window. to reset the color make sure that you have selected the check box named ‘Use colors from system theme’ in the ‘Colors’ tab.alt text

Answered By: aneeshep

If you want to do a complete reset of the Gnome Terminal settings, you can remove the ~/.gconf/apps/gnome-terminal directory which contains them. I would close all terminal windows on your desktop. Then switch away from the GUI with Ctrl+Alt+F1 and login on the console.

You should probably backup the directory first, with something like:

cp -a ~/.gconf/apps/gnome-terminal ~/terminal-settings.bak

Then remove it:

rm -rf ~/.gconf/apps/gnome-terminal

Now, you can switch back to the GUI with Alt+F7 or Alt+F8 and launch the terminal. It should be reset to system default settings.

Answered By: Mark Shuttleworth

Try gconftool --recursive-unset /apps/gnome-terminal

Answered By: Leon Nardella

When you are in Terminal, go to Edit > Profile preferences, or press Alt+EO to open the Editing Profile dialog. After make sure to select everything as below images.

Also, make sure that the value of PS1 in ~/.bashrc file is:

PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '


title and command





Answered By: Radu Rădeanu

Ubuntu 16.04

This simple command works in Ubuntu 16.04.

dconf reset -f /org/gnome/terminal/legacy/profiles:/

Reset only the default profile

However, if you want to reset only the default profile, which uses UUID b1dcc9dd-5262-4d8d-a863-c897e6d979b9 by default, you can use

dconf reset -f /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/

Note: This method should work in Ubuntu 15.04, 15.10 and may work in 14.04 too! But I haven’t tested on those versions

Answered By: Anwar

In order to reset terminal , one must understand first what part you want to reset exactly – do you want to reset graphical looks ? do you want to reset the shell ?

First of all, default terminal in Ubuntu is gnome-terminal so for 99% of new users, I assume you’re using gnome-terminal. Advanced users, who use something other than gnome-terminal will have to refer to manuals of their respective terminal emulators.

Resetting gnome-terminal GUI preferences to default

In order to reset gnome-terminal it is sufficient to do this:

dconf reset -f /org/gnome/terminal/legacy/profiles:/ 

Alternatively, you could use GUI tool called dconf-editor.

NOTE: Multiple answers here suggest gconftool-2. However, GConf

. . .was deprecated as part of the GNOME 3 transition. Migration to its replacement, GSettings and dconf, is ongoing (source)

Resetting shell

It is a frequent question by users that they have something with their shell, and now the text in terminal looks different or they see an error. Simple, quick and dirty way is to get rid of old ~/.bashrc file and replace it with default one, stored in /usr/share/base-files/dot.bashrc
You can do so via terminal or via GUI – doesn’t matter. Via terminal, you’d do cat /usr/share/base-files/dot.bashrc > ~/.bashrc and via GUI – delete old file, copy /usr/share/base-files/dot.bashrc from file manager to your home folder and rename as .bashrc

Gnome Terminal doesn’t open

So you have changed some setting and now gnome-terminal doesn’t work. Great, what now ? Luckly, there’s couple of ways to get around this.

One, start xterm. By default, Ubuntu comes with two terminal emulators. xterm is the original terminal emulator for X11 GUI and has been around since long ago, when dinosaurs of Unix systems roamed the earth. You can use it to call the dconf command mentioned above, as well as reset your ~/.bashrc config file.

Another approach, would be use dconf-editor tool, again mentioned above. If you don’t have it installed – use Software Center to get it.

Finally, you can always purge and reinstall the terminal. Purging the gnome-terminal means any config files associated with it will be removed and it will be installed from scratch. The command to do so is sudo apt-get remove --purge gnome-terminal and then sudo apt-get install gnome-terminal. This can be done via xterm or TTY (Ctrl+Alt+F[1-6])

I did something to my prompt , I want it to look like user@hostname:~$ again.

Here’s the thing: the prompt has two static parts username@hostname: and $. The one in the middle, ~, means your current working directory. Just like in file manager, when you jump to different directories, the terminal will display the directory in which you’re working right now. So for example:

xieerqi@eagle:~$ cd /etc
xieerqi@eagle:/etc$ cd /home/$USER/Desktop

If you want to see ~ again, all you have to do is jump back to your home directory:

xieerqi@eagle:~/Desktop$ cd

If you want to permanently get rid of the directory information in your prompt, you should edit your ~/.bashrc file. Add this line:


Save the file and run source ~/.bashrc . Now you have a static prompt. Big problem is that you won’t see where you are at the moment, so you will have to rely on pwd command for that and be careful not to delete valuable files ( so you have been warned 🙂

You can also use bash --posix which will display this type of prompt:

$ bash --posix

I don’t want to deal with this, just give me working terminal

That’s fairly easy: install some other terminal emulator. Oh, and there’s plenty to choose from. Personally, I’d recommend terminator, guake or sakura

Answered By: Sergiy Kolodyazhnyy

I played with it which resulted in removing all colors.. and kept me with monochrome..No difference between file and directories.

Try either of this:

ls --color=auto  
ls --color=tty


Might help someone…

Answered By: Shachi
Categories: Answers Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.