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?
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.
gconftool --recursive-unset /apps/gnome-terminal
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
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.
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
NOTE: Multiple answers here suggest
. . .was deprecated as part of the GNOME 3 transition. Migration to its replacement, GSettings and dconf, is ongoing (source)
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
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
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.
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
$. 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 xieerqi@eagle:~/Desktop$
If you want to see
~ again, all you have to do is jump back to your home directory:
xieerqi@eagle:~/Desktop$ cd xieerqi@eagle:~$
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 bash-4.3$
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
When you are in Terminal, go to Edit > Profile preferences, or press Alt+E-O to open the Editing Profile dialog. After make sure to select everything as below images.
Also, make sure that the value of
~/.bashrc file is:
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...