Skip to main content
Share Your Experience: Take the 2024 Developer Survey
45 votes

Terminal - create hyperlinks

Newer version of GNOME terminal now support hyperlinks with custom target via certain escape sequences. Try echo -e '\e]8;;http://example.com\e\\This is a link\e]8;;\e\\' Opening these works the same ...
alphanum's user avatar
  • 879
39 votes
Accepted

How to export a gnome-terminal profile?

You can use dconf(1) to dump and load the gnome-terminal profiles. I got the basic command usage from this source: https://gist.github.com/reavon/0bbe99150810baa5623e5f601aa93afc To export all of ...
Zeb DeOs's user avatar
  • 506
36 votes

search text on the terminal output

If you use Konsole (KDE terminal emulator), you can use Ctrl + Shift + F. This might work also in other (Linux) terminal emulators; it has been confirmed to work in GNOME Terminal, the Xfce terminal, ...
Augustin's user avatar
  • 473
34 votes

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

I've found what cause this bad behavior with many linux flavors : /usr/share/vim/vim80/defaults.vim # may be "vim81" depending on your vim version it's 'sourced' if there's no ~/.vimrc but even if ...
Gilles Quénot's user avatar
32 votes
Accepted

Open Gnome Terminal window and execute 2 commands

gnome-terminal treats everything in quotes as one command, so in order to run many of them consecutively you need to start interpreter (usually a shell), and do stuff inside it, for instance: gnome-...
jimmij's user avatar
  • 47.5k
27 votes

How to rename terminal tab title in gnome-terminal?

New versions of gnome-terminal just thrown away most helpful professional features. :-( I have tried to setup and get an older version of gnome-terminal running and also compared alternatives. If ...
geekQ's user avatar
  • 371
26 votes
Accepted

Pass F10 to the application in Gnome-terminal

Go to Edit->Keyboard Shortcuts And uncheck "Enable the menu shortcut key" to turn it off. Reference link : here.
msc's user avatar
  • 537
26 votes
Accepted

How to configure Nemo's right-click "Open in Terminal" to launch "gnome-terminal"

Nemo uses the gsettings configuration. This restored the intended behavior: $ gsettings set org.gnome.desktop.default-applications.terminal exec gnome-terminal On Ubuntu it's different for some ...
L. D. James's user avatar
  • 1,624
25 votes
Accepted

Double click selection in Gnome Terminal

How much is selected on double click can be configured via adding additional character classes to the default set. That means that adding a colon and other special characters that may show up in URLs ...
maxschlepzig's user avatar
  • 57.7k
24 votes

How to rename terminal tab title in gnome-terminal?

My new script as of March 2021: I have a new version of the "set title" function now. For the latest version of it, search my ~/.bash_aliases file somewhere around here. Here's what it might ...
Gabriel Staples's user avatar
24 votes
Accepted

Terminal - create hyperlinks

If the links are output as full URLs, they should be clickable when you hover over them (with the mouse pointer) while holding Ctrl down.
Stephen Kitt's user avatar
23 votes

How can I run multiple Bash scripts simultaneously in a terminal window?

You don't lose control over them. You're sending them (other than the last one) to the background. If you run the command chain you specify, the invocation ./script.sh 4 will be in the foreground, ...
DopeGhoti's user avatar
  • 76.5k
21 votes

Open Gnome Terminal window and execute 2 commands

As of January 2020, the -e option in gnome-terminal still works, but throws the warning # Option “-e” is deprecated and might be removed in a later version of gnome-terminal. # Use “-- ” to ...
Trevor's user avatar
  • 1,649
20 votes
Accepted

Why can issuing the same command create more output in tty than in pts/gnome-terminal?

They're coming from the kernel. You'll see them also by running dmesg Kernel messages are displayed on virtual console by default; they aren't in X terminal emulators (such as GNOME Terminal).
Stephen Kitt's user avatar
17 votes

Cursor disappears when running `top -n1 | head`

Best way IMHO is to make top use "batch" mode (-b flag) which is intended to be used with non-interactive use cases such as piping to another program or to a file. So, this top -n1 -b | head won't ...
Daniele Santi's user avatar
16 votes

Configure xterm to use ctrl+shift+c/ctrl+shift+v for copy/paste?

I was able to use CTRLSHIFTC and CTRLSHIFTV for Copy-and-Paste with XTerm by adding XTerm*vt100.translations: #override \ Shift Ctrl <Key> C: copy-selection(CLIPBOARD) \n\ Shift Ctrl &...
finefoot's user avatar
  • 3,090
15 votes
Accepted

How can I run multiple Bash scripts simultaneously in a terminal window?

After testing different methods and programs, I found that the pragmatic solution is GNU Parallel. I post this answer as it may help others. GNU Parallel has not been built for this task, but ...
Googlebot's user avatar
  • 1,959
13 votes
Accepted

Strange character overlap in terminal

For terminal emulators, you should choose a monospace (a.k.a. fixed with) font. The letters are positioned in a grid, rather than as it would look nice according to the width of each individual letter....
egmont's user avatar
  • 5,956
13 votes

Pass F10 to the application in Gnome-terminal

On Ubuntu 20.04.1, Gnome version 3.36.8 it is: Gnome terminal's "hamburger menu icon" > Preferences > "General" tab > Uncheck the item labeled "Enable the ...
Levente's user avatar
  • 247
13 votes
Accepted

Why `clear` do not clear whole screen?

The important thing to note here is the tag on the question. This behaviour is specific to GNOME Terminal and any other terminal emulators that are built upon libvte. You won't see this in Xterm, or ...
JdeBP's user avatar
  • 69.2k
12 votes
Accepted

"error constructing proxy..." when trying to launch gnome-terminal as root

Remember how Windows applications mainly worked back in the Win16 days before Win32 came along and did away with it: where there were hInstance and hPrevInstance, attempting to run a second instance ...
JdeBP's user avatar
  • 69.2k
11 votes

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

I ran into this on my OS X "Terminal" app on a Fedora Server 25 host. I've permanently solved it with this in my .vimrc with: set mouse= set ttymouse= Now I can scroll up to my previous bash history ...
Robpol86's user avatar
  • 211
11 votes
Accepted

Configuring Gnome Shell key bindings from the command line

Thanks to @don_crissti's help and the answer they pointed me to. In order to change Gnome Terminal keybindings a path must be provided for the schema (as it is relocatable). So we need to define both ...
Peque's user avatar
  • 3,482
10 votes

gnome-terminal: keep track of directory in new tab

Might as well crosspost this hacky solution from superuser: [This] saves the current folder in a file, after every command (Doesn't hurt too much IMO) and opens a new terminal in the saved ...
xjcl's user avatar
  • 341
10 votes
Accepted

grep with special expressions

As per man grep The period . matches any single character. thus grep .c match any character followed by c You might be looking for grep -v \.c or better grep -v '\.c$' where \. escape special ...
Archemar's user avatar
  • 31.6k
9 votes

Strange character overlap in terminal

I had this exact same problem with a fresh Arch install. I added the ttf-dejavu and kbd packages as per this and this. problem solved! Not sure which of these fixed it but there you go, sorted. ...
Paul's user avatar
  • 91
9 votes
Accepted

How to type in password for multiple windows?

In general (ignoring vagrant or other system-specific details) your best bet is to set up authentication with SSH keys, and run ssh-agent. Then open the ssh sessions with something like: # load the ...
ilkkachu's user avatar
  • 140k
9 votes

Spawn new terminal window with the same directory as the previous window

On Arch Linux + GNOME (at least), you can add the following line into ~/.bashrc to have new Terminal windows opened in the current directory: source /etc/profile.d/vte.sh There is already a related ...
Thomas Hugel's user avatar
9 votes
Accepted

why piping pwd and echo does not work?

echo does not do anything with standard input; it only parses its parameters. So you are effectively running echo which, by itself, outputs a single empty line, and the standard input is discarded. ...
DopeGhoti's user avatar
  • 76.5k

Only top scored, non community-wiki answers of a minimum length are eligible