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?
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?
Try
gconftool --recursive-unset /apps/gnome-terminal
Ubuntu 16.04
This simple command works in Ubuntu 16.04.
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 useNote: 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
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.
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:
Then remove it:
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 usinggnome-terminal
. Advanced users, who use something other thangnome-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:Alternatively, you could use GUI tool called
dconf-editor
.NOTE: Multiple answers here suggest
gconftool-2
. However,GConf
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 docat /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 thedconf
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 thensudo apt-get install gnome-terminal
. This can be done viaxterm
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:If you want to see
~
again, all you have to do is jump back to your home directory: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: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
orsakura
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
PS1
in~/.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:
Reference: https://www.cyberciti.biz/faq/how-to-turn-on-or-off-colors-in-bash/
Might help someone...