GNOME Terminal is a terminal emulator for the GNOME desktop environment. Among its key features are support for multiple profiles, colored text, tabs, mouse support, URL detection a number of UI customizations and compatibility options.

learn more… | top users | synonyms

88
votes
4answers
55k views

Way to avoid ssh connection timeout & freezing of terminal tab

When I connect via ssh terminal to certain servers, it timeouts and "freezes" the terminal (doesn't accept, doesn't disconnect, can't Ctrl-C to kill the ssh process or anything). This is in Ubuntu's ...
24
votes
2answers
4k views

Slight delay when switching modes in vim using tmux or screen

Switching to and from insert mode in Vim is no longer instantaneous since I use tmux. After pressing Esc in insert mode, it takes a noticeable amount of time to actually get out of insert mode. After ...
22
votes
3answers
32k views

How to show output on terminal and save to a file at the same time?

I am using: user@unknown:~$ sudo command -option > log to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible? I am using ...
21
votes
5answers
14k views

Save multiple gnome-terminal layout?

I have multiple gnome-terminal windows open. Is there a way to save the settings (window position, no. of tabs, title etc). across OS reboots ?
15
votes
5answers
15k views

Console like Gnome Terminal for Windows

I'm looking for console like the Gnome Terminal for Windows to replace cmd.exe. I'd like to have tabs and easy copy&paste. Do you know a tool like that?
15
votes
3answers
9k views

In vim, how can I quickly switch between tabs?

In gnome-terminal, I can just press Alt + (1, 2, 3, etc.) to switch to specific tabs. I can also use Ctrl + (PgUp / PgDn) to cycle through tabs (admittedly less convenient, but it can be remapped). ...
12
votes
2answers
39k views

How to run programs from a linux terminal without blocking the terminal?

Right now when I start a program from a terminal I can't use that terminal instance again until I close the program. I am a new user of linux, and I want to know if there is a way to execute a ...
12
votes
1answer
1k views

Why does vim delay for a second whenever I use the 'O' command (open a new line above and insert)?

When I use most commands, they take effect instantly. When I use the O command, however, I see the "O" replace the current character for a about a second, then the current character returns, and a new ...
11
votes
2answers
10k views

Programmatically open tab in gnome-terminal, execute command, and have tab stay open

I am trying to write a command that will launch a few terminal tabs, execute something in each tab, and have each tab stay open after the command in finished, so I can look at the output and type more ...
11
votes
4answers
6k views

Linux: How to set default directory of terminal emulators?

After upgrading to Ubuntu 11.04, my terminals (gnome-terminal and urxvt) start in "/" instead of "~" What can cause this behavior? I imagine that the working directory of Gnome or X is set to "/", ...
10
votes
2answers
18k views

Open gnome terminal programmatically and execute commands after bashrc was executed

For starting my dev environment I wrote a little script. One part is to open a gnome terminal with several tabs where automatically some commands should be executed. Some of those commands depend on ...
10
votes
4answers
11k views

Vim colors not working properly in terminal

I'm using gnome terminal, and vim with solarized color theme. When I open vim in the terminal, it's illegible. But when I open a file in gvim, the color scheme works perfectly. Gnome terminal's ...
10
votes
3answers
5k views

Can I have my terminal background change based on hostname?

I'd like to have my terminal background color change based on hostname. My reasoning for this is mainly to have and extra way to remind myself what server I am on, so I don't do something stupid. Is ...
8
votes
1answer
3k views

How to make mouse wheel scroll the less pager using bash and gnome-terminal?

I have two computers with the latest Fedora. On the first, I'm using zsh and the mouse wheel can be used with the less pager within gnome-terminal to scroll the pager. On the second, I use bash and ...
8
votes
2answers
993 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 ...
8
votes
3answers
402 views

Tabbed terminal that connects to a GNU Screen session?

I use the session feature of screen extensively. For example, I'll start a screen session for "project1" as "screen -S project1", and then when I need to reconnect I use "screen -d -r project1". ...
7
votes
2answers
6k views

can I make ubuntu's terminal program automatically copy to the clipboard selected text and paste on right click?

i'm used to using putty on a window's machine. With putty whatever you select is automatically on the clipboard without having to right click and select copy. And right click just pastes.
7
votes
1answer
4k views

Ubuntu: Copy terminal mouse selection automatically to clipboard for other apps?

I can use keyboard shortcuts and selecting text with the left mouse button allows me to insert the selection within gnome-terminal with the middle mouse button. However, mouse selection with left ...
6
votes
2answers
2k views

Terminal that supports the ANSI italic escape code?

I would like to replace GVim with Vim in the terminal. One of the nice things about GVim is that it is able to display text using italics. Vim allows setting an ANSI escape code for italics (\e[3m), ...
6
votes
3answers
464 views

Portable method of opening a new terminal window?

So, I'm working on a custom makefile script (for TinyOS, if anyone cares) that builds a file and then runs it in a simulator. The problem is that the simulator takes it's input from standard in, and ...
6
votes
1answer
3k views

How to enter copy mode on mouse scroll in tmux?

The mouse scroll wheel does not work when not in copy mode. I'm not sure whether it is supposed to be working then? When in copy mode, the scroll wheel does work. The problem is that I still need to ...
6
votes
2answers
1k views

Single-line scrolling in gnome-terminal broken?

The GNOME documentation says that I should be able to scroll my gnome-terminal output by one line using CTRL-SHIFT-(up/down). Neither works for me; I get A or B, which I assume has to do with the ...
5
votes
3answers
5k views

Gnome: Change title of current terminal from bash command line

I know there are options to start a new terminal with a specified title, and that is is possible to change the title from a terminal using the menu: 'Terminal' -> Set Title. However, I want to change ...
5
votes
3answers
789 views

Ctrl-C behavior in gnome-terminal

I have installed Ubuntu 10.04. It works fine, but when I press Ctrl-C in gnome-terminal I get: user@desktop:~$ ^C user@desktop:~$ ^C user@desktop:~$ In Ubuntu 9.04 (I did have it before) it was so: ...
5
votes
3answers
392 views

How do I detect when I a terminal gets focus in Linux?

I want to be able to time how long I spend in front of a terminal. I'm thinking the best way will be to have some sort of timer that starts and stops when the terminal gains/loses focus. And it will ...
5
votes
2answers
2k views

Is it possible to make Gnome Terminal show the name of the file I am editting in vim as the tab title?

I often have several files open in vim, each in a different tab. I have to remember which tab has which file open. Is there a way to show this in the tab titles?
5
votes
3answers
3k views

How can I turn off font-antialiasing only for gnome-terminal, but not for other applications?

I'm running GNOME (gnome-session under xmonad). I want to turn off antialiasing (i.e. use monochrome mode) for fonts in gnome-terminal. But I want to retain antialiasing for other applications, like ...
5
votes
2answers
5k views

How does vim colorscheme work with gnome-terminal profile colors?

I am confused about how vim's color schemes seem to be working for me with my gnome terminal color settings. I have installed the colorscheme sample pack: ...
4
votes
2answers
341 views

When I paste a command on my bash prompt it is not in history — how can I add it?

When I paste a command to my OS X or Ubuntu bash prompt using CmdV, the command is not in history – even if it is executed. The command is in history only if I type it. How to enable that pasted ...
4
votes
2answers
856 views

Is there any way to keep text passed to head, tail, less, etc. to be colored?

Is there any way to keep colorization of text passed through pipe | to head, tail, less, etc.?
4
votes
2answers
1k views

get ubuntu terminal to send an escape sequence (control+shift+up)

This problem starts when I use emacs ( with -nw option). Let me first explain it. I tried to define hotkey (for emacs) as following (global-set-key [(control shift up)] 'other-window) but it ...
4
votes
1answer
2k views

How do I open gnome-terminal in a maximized window by default?

I am using Ubuntu 11.04. When I launch gnome-terminal, how do I make it open in a maximized window by default? Currently it's only taking part of the screen and I always have to maximise the window. ...
4
votes
1answer
1k views

Linux Mint 12: Can't Create gnome-terminal Profiles

I am trying to setup some gnome-terminal profiles, so that I can have a pre-configured set of tabs when I start gnome-terminal. Previously I achieved this by going to Edit=>Profiles... (in ...
4
votes
2answers
236 views

Will any (recent) Linux terminal emulator allow me to save my session (tabs, history, etc)?

Over time, I become invested in my terminal sessions: tabs, command history, window layout and title, etc. Eventually, a reboot requires me to start all over again which wastes my time. The two ...
4
votes
1answer
318 views

Disable Using Bright Colors for Bold Font in gnome-terminal

gnome-terminal uses bright colors for bold fonts. Is it possible to configure it to use the same color for bold fonts as for normal fonts. Also, I do need bright colors somewhere else, so changing the ...
4
votes
2answers
2k views

How do I disable the auto-copy-on-select feature of gnome-terminal?

Recently I found the auto-copy on selection feature of gnome-terminal really annoying. However, I tried to look for a way to disable it. As it turns out, there's few documentation for that. I was ...
3
votes
4answers
3k views

How to quit ssh from terminal after remote server reboot?

I often use Ubuntu's GNOME Terminal to connect to an external server using ssh. When rebooting the server the Terminal shows this message: # reboot Broadcast message from root (pts/0) (Wed Sep 29 ...
3
votes
2answers
552 views

gnome-terminal: how to preserve symlinks of working directory when opening new tab?

If I'm using gnome-terminal in a working directory whose path includes symlinks and I open a new tab, the symlinks will be expanded to their destinations in the working directory of the new tab. Is ...
3
votes
1answer
8k views

How to install gnome-terminal in Cygwin?

I need to run gnome-terminal in Cygwin in Windows environment. Gnome-terminal doesn't seem come with default Cygwin installation. I couldn't find documentation on how to install it. Does any one have ...
3
votes
3answers
1k views

black backgrounds appear grey on gnome-terminal

Running gnome under Ubuntu Lucid $ env | grep TERM TERM=xterm COLORTERM=gnome-terminal I had to edit both my .muttrc and my vim colorscheme to change the background color from black to none in ...
3
votes
2answers
669 views

How do I edit previous lines in a multiple line command in GNOME Terminal?

When entering a command which spans multiple lines in Bash, how do I edit previous lines? I'm a Linux Mint (Lisa) user using GNOME Terminal. For example, let's say I type: $ echo "foo bar > baz ...
3
votes
2answers
6k views

make gnome-terminal real transparent

I want to make gnome-terminal transparent. To do this I have to select option Transparent background and move the slider under Background tab from the menu - Edit -> Profile Preferences. It becomes ...
3
votes
1answer
514 views

gnome-terminal/bash: How to cancel inserted commands that will be executed later?

$ execute_some_long_command <command is executing> <Accidently press middle button that inserts bunch of garbage (including, for example, `rm -Rf ~/*`) into console> How to let ...
3
votes
2answers
899 views

gnome-terminal. New tab opening

I am launching the gnome-terminal and I am working in a specific path For example: /home/user/programs/c/. Now I am opening another tab. When I am opening the new tab it is also in the same path. i.e. ...
3
votes
2answers
479 views

How can I see the console output on linux like in windows?

Well, let's say we have a application that runs in a console and is for both windows and linux. On windows when you double click the application a command window opens and the application runs, you ...
3
votes
1answer
988 views

screenrc: How to map “alt+number” to “select a screen window” in gnome terminal

I found this online: bindkey "\261" select 1 bindkey "\262" select 2 bindkey "\263" select 3 .... Basically it maps alt+1 to "select 1"; alt+2 to "select 2". So when you press alt+1, it is ...
3
votes
2answers
1k views

Setting up a command line alarm clock in Gnome

I'd love to have a CLI alarm clock and came up with this: echo 'gnome-open /home/me/alarm.ogg' | at 09:15 Any ideas why above doesn't work, or anything along those lines? I've found an answer: ...
3
votes
2answers
2k views

Smooth fonts in Gentoo terminal in Awesome WM?

I had GNOME DE but recently I've switched to Awesome WM. The only problem I have I can't set smooth fonts in Gnome-terminal. If I start gnome-settings-daemon, all the fonts in terminal become smooth, ...
3
votes
1answer
358 views

Bash Alias to perform Alt+1?

Using Ubuntu I can create a terminal with two tabs: gnome-terminal --tab --tab However, by default it goes to the last created tab. Using Alt + 1 I can make it go to the first, but I want to avoid ...
3
votes
1answer
213 views

Set default location for Terminal window opened with Ctrl+Alt+T

I want to change the command line of gnome-terminal to include geometry of both size and location. I already know how to set size using the configuration editor, but not location. There must be some ...