GNOME Terminal is the standard terminal emulator for the GNOME desktop environment.

learn more… | top users | synonyms

36
votes
3answers
9k views

ESC key causes a small delay in terminal due to its Alt+ behavior

My terminal setup is gnome-terminal + tmux + zsh with vi bindings. In applications like vim or even in the zsh's command line vi editing mode, I need to frequently hit the ESC key but there is a ...
35
votes
5answers
39k views

How to clear terminal completely?

When we use clear command or Ctrl+L in terminal, it clears terminal but we can still scroll back to view the last used commands. Is there a way to completely clear the terminal?
31
votes
3answers
30k views

Which terminal type am I using?

I have tested this with both Ubuntu 12.04 and Debian 7. When I do echo $TERM I get xterm But if I use the dropdown menu "help" > "about" then it says gnome terminal 3.4.1.1. Does this mean I am ...
25
votes
2answers
32k views

How do I get the solarized colour scheme working with gnome-terminal, tmux and vim?

There's a lot of questions around this, but it's because there are so many variables. I had to piece together instructions from many sites before I got this working. First, I could not easily set up ...
20
votes
4answers
14k views

How to rename terminal tab title in gnome-terminal?

Used to be able to right click on the tab and change the title. Not sure how to do this anymore. Just upgraded to Fedora 21. EDIT: I have switched from gnome-terminal to ROXterm
20
votes
4answers
21k views

Is it possible to set Gnome Terminal's title to “user@host” for whatever host I'm connected to?

I'd like to set the terminal title to user@host so I can easily tell which machine I'm connected to from the window title. Is there a way to do this from SSH or from GNOME Terminal?
18
votes
1answer
5k views

gnome-terminal: keep track of directory in new tab

I'm on Arch linux, and when I open a new terminal tab, it always goes to $HOME. How can I make it so that when I open a new tab, it opens the shell in the directory I was in previously?
16
votes
3answers
13k views

disabling mouse support in `vim` in a `gnome-terminal` environment

Edit: The problem of an enabled mouse in vim appears to be specific to gnome-terminal (version 3.4.1.1-1; I am using gnome 3 fallback mode). If I run xterm, mouse support in vim is disabled by default,...
12
votes
5answers
8k views

Terminal - copy from CLI without using mouse

While firing commands in CLI, I want to copy the command I just fired or anything I wrote in terminal and paste it somewhere else without using mouse. Like in following picture, I want to copy the ...
11
votes
1answer
833 views

Why xterm displays 256 colors (not xterm-256color)?

Could someone explain this? I'm using gnome-terminal. First, some information: # echo $TERM xterm # infocmp xterm Reconstructed via infocmp from file: /lib/terminfo/x/xterm colors#8, cols#80, it#8, ...
11
votes
1answer
2k views

Keyboard shortcut to set gnome-terminal tab title

I like to work in Linux without using the mouse, because of that I would like to know if there is any method to set a keyboard shortcut to set gnome-terminal tab title.
10
votes
2answers
474 views

In xterm, what is “Icon Name”?

Running in xterm (or gnome-terminal) the following command sets the so-called "Icon Name": echo -en "\e]1;some_value\a" What does this do? Note that it is possible to set both "Window Title" and "...
9
votes
3answers
5k views

Why 'echo $0' gives different result for two different terminals?

I opened a terminal on Ubuntu using Ctrl+Alt+T and a different terminal by going to a directory and then right clicking and choosing "Open in Terminal". I did an echo $0 in both cases. In the ...
9
votes
3answers
7k views

Is there a “Open terminal here” from File Browser?

Something equivalent to Windows' "cmd prompt here", that will open a gnome-terminal on a specific folder?
9
votes
5answers
9k views

Why does F10 in gnome-terminal open the right-click menu?

I am running Fedora 17 gnome (shell) 3 and gnome terminal 3.4.1.1. I am a user of both gnome-terminal and midnight commander. As default gnome-terminal has always used F10 (which I need while using ...
9
votes
1answer
9k views

How to execute a script in shell when a shortcut key is pressed

How could I execute a script in Shell when a shortcut key is pressed. Essentially what I need is when a shortcut key is pressed the script should read from a file and display that content in the ...
9
votes
4answers
16k views

Prevent SSH client passing TERM environment variable to server?

I'm currently using Fedora 18 gnome-terminal, then started tmux multiplexer in it. After I connected to a CentOS 5 server via ssh command, I find: ls result has no color tmux, screen, hexedit, htop ...
9
votes
1answer
1k views

Why don't Linux terminal emulators support full colors?

I just upgraded my gnome-terminal to use 256 colors, yet I am a bit puzzled on the reason why a terminal emulator can't support the full palette any modern desktop environment provides. I guess there'...
9
votes
2answers
4k views

Terminal 256 colors don't work through Tmux [duplicate]

Possible Duplicate: Getting 256 colors to work in tmux I want to set my terminal to 256 colors. I normally use the Gnome terminal which is shipped by default in Ubuntu but I also downloaded ...
8
votes
2answers
1k views

How do I find number of vertical lines available in the terminal?

I'm writing a script which shows the git log for a directory when I cd into it. Such a log can be overwhelming, containing hundreds of lines. So far I have been limiting that to a hard-coded 20 lines (...
8
votes
3answers
8k views

Effect of $LANG on terminal

I'm trying to learn how the $LANG variable behaves with gnome-terminal (and its character encoding preference option). I've been using iso8859-1 (latin1) as my main character-set and all my filenames ...
8
votes
2answers
21k views

set gnome terminal background/text color from bash script

I would like to setup my gnome terminal's background(#002b36) and foreground color in ubuntu 13, using bash script. I tried gconftool but couldn't succeed. GCONFTOOL-2(1) User ...
8
votes
2answers
1k views

Gnome-terminal and Zsh: keep current directory on new tab/window

I'm running gnome 3.10.1 on Arch with Zsh. I'm facing that problem that when I create a new tab or window from a terminal window, it resets the current dir to my home dir. I've already tried this: ...
8
votes
1answer
8k views

How to add color themes to Gnome-Terminal's GUI preferences?

I use Gnome-Terminal for a lot of my work, and like separating my windows by color based on the task that I'm doing, so I've set up several profiles using the Preferences GUI. I found some color ...
7
votes
4answers
8k views

Ctrl+C does not work in gnome-terminal

On my Linux host, Ctrl+C does not seem to work and I do not know how to proceed to make it work. I am using Ubuntu 10.04 with bash 4.1.5(1), and working in Gnome-terminal. When I pressed Ctrl+C while ...
7
votes
3answers
15k views

search text on the terminal output

I am running an application with command $ grails run-app which prints log in terminal like below. What I want is search a particular text (say user authorities) in this log so that I can verify ...
7
votes
4answers
3k views

Tmux xclip copy no longer working

On mu ubuntu 12.04 setups my tmux clipboard copy and paste commands are setup as follows: set -g prefix M-a unbind C-b bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" bind C-v run "tmux ...
7
votes
2answers
1k views

Changing gnome terminal transparency with a command in Ubuntu?

How can I change the transparency of the Terminal windows in Ubuntu with a command? I already know about the profile method but want a command so that I can quickly swap between transparent and ...
7
votes
2answers
7k views

Set Gnome terminal's default charset to utf8

Currently, I opened my gnome terminal and the default charset is gb2312. How can set the default charset to utf8 in Gnome terminal? I checked the preference setting but seemed not to find it. ...
7
votes
2answers
1k views

indistinguishable active tab in gnome terminal

I am running Gnome 2.30.2 and Gnome Terminal 3.0.1 on my Debian Sid and recently the active tab became almost indistinguishable from other tabs. It is actually the same colour. Changing the themes ...
7
votes
4answers
5k views

Ctrl + c will not kill process

I have looked for answers and so far have found nothing to answer my question. I am currently logging in to my Ubuntu server and upon running a process I can not run any of the interrupts on it. Here ...
7
votes
1answer
1k views

Raspberry Pi, serial console, minicom, and gnome-terminal

I'm trying to access my raspberry pi via its serial console on the gpio pins. It's working fine through a USB-3.3v serial dongle. However, there's a problem with long lines and long screens not ...
7
votes
1answer
1k views

Interrupt sequence CTRL+C does not work for user

In any terminal operating under GNOME, if I press Ctrl+C, I only see a question mark. Same goes for Ctrl+Z. The output of stty -a | grep intr is: intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D;...
6
votes
2answers
445 views

What is the gnome-terminal ANSI escape sequence for “CTRL + arrow/s”?

I am trying to configure my bash ~/.inputrc to these settings (Note: ←, → mean the left and right arrow keys) Ctrl + ← - should jump back a word Ctrl + → - should jump forward a word Currently I ...
6
votes
3answers
1k views

Why does Ctrl+Arrow make my terminal switch to a strange mode?

When i type Ctrl+Left or Ctrl+Right within Guake or gnome-terminal the last one's behaviour turns to a some kind of non-usual mode: - key acts like arrow up and + like arrow down, v runs Nano, etc. ...
6
votes
2answers
8k views

terminal: non-english characters

I used to be able to copy&paste (or type if I load respective keyboard layout) any kind of characters (eg. é ö ñ ß و 好) in my console/terminal. Now I bought a new computer and it does not work ...
6
votes
2answers
6k views

Gnome programs (eog/gnome-terminal) have a slow start and produce a DBus.Error.NoReply Warning

For some time eog and gnome-terminal are starting very slow on my (X)Ubuntu 13.10. I think other gnome tools are affected, too, but I don't use any else. Now I get a org.freedesktop.DBus.Error....
5
votes
2answers
246 views

How to run a script when a title is set to a terminal tab?

During my day-to-day work, I keep many terminal tabs. So to identify those, I set titles Terminal Tab > Set Title e.g. IRC, API Codebase, API Logs, Server1, etc What I want to do is do something in ...
5
votes
2answers
1k views

Run true multiple process instances of gnome-terminal

If you have gnome-terminal running, and want a new instance of the program, you might think that running gnome-terminal & from a shell would do the trick. Astonishingly, this new instance behaves ...
5
votes
3answers
13k views

How can I launch gnome-terminal with unique titles for multiple tabs?

I've seen various posts about launching gnome-terminal with multiple tabs and the script below is working for me. That is to say, this script will launch gnome-terminal with various working ...
5
votes
1answer
3k views

How to get gnome-terminal in English?

Is it possible to select a different language for a specific application? On some systems I run Fedora15/Gnome in German, but want to use the Terminal in English including for the simple prompt ...
5
votes
2answers
1k views

Can I set a bash timeout only for virtual consoles (ctrl+alt+{f1-f6})

I know that I can set a TMOUT variable to automatically end a bash session after a specified period of inactivity. However, what I want is to apply that only to my 6 built-in virtual consoles, which ...
5
votes
4answers
3k views

Home key not working in terminal

I am using GNOME Terminal 2.7.3 and zsh 4.3.9 (x86_64-unknown-linux-gnu) Home and End are not working. Nothing happens and nothing gets displayed when I press them. but they work when I press shift + ...
5
votes
2answers
432 views

vte.sh does not keep my gnome-terminal directory in new tab

I used to keep my working directory when opening a new tab in gnome-terminal and want to restore this functionality. My research pointed me to sourcing /etc/profile.d/vte.sh in my ~/.zshrc (I use Z ...
5
votes
2answers
180 views

Set terminal title from within Mutt?

With the help of Display command in xterm titlebar I've got gnome-terminal changing the title to reflect the running command, so that I can see which terminal Mutt is running it. But what I'd really ...
5
votes
1answer
592 views

How to get background color in Emacs?

In Emacs no window mode, the background is automatically the same as the terminal (gnome-terminal). When I look at (frame-parameters) I see that (background-color . "unspecified-bg"). Well, for me, ...
5
votes
2answers
2k views

How can I disable terminal resizing

Vim scripts sometimes resize the whole shell (in my case the Taglist plugin). I don't want this behavior, which is possible with the shell command resize, too. Is there a way to suppress the whole ...
4
votes
3answers
3k views

Using chown $USER:$USER inside bash script

In a small bash script I'm running I am attempting to chown a new directory that is created. I've added: sudo chown $USER:$USER /var/www/$sitename sudo chmod 775 /var/www/$sitename after the line ...
4
votes
1answer
1k views

Is there a way to temporarily change the terminal colour?

I use the gnome-terminal and most of my editors with a white on black theme as I find its easier on the eyes. One of my labs requires screenshots of the terminal (with the process) to be submitted ...
4
votes
1answer
44 views

Open a new terminal, monitor it and execute a script

I have a script that I want to monitor its results and write them to a log file. I run the following: gnome-terminal -x bash -c "script logfile.log; ssh user@IP" But this command execute first the ...