Questions tagged [tmux]

tmux is a terminal multiplexer: it enables a number of terminals (or windows), each running a separate program, to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.

tmux is intended to be a simple, modern, BSD-licensed alternative to programs such as GNU screen.

When tmux is started it creates a new session with a single window and displays it on screen. A status line at the bottom of the screen shows information on the current session and is used to enter interactive commands.

A session is a single collection of pseudo terminals under the management of tmux. Each session has one or more windows linked to it. A window occupies the entire screen and may be split into rectangular panes, each of which is a separate pseudo terminal


Resources


Related tags

1849 questions
20
votes
2 answers

Tmux scroll mode: vim keybindings?

So if I am in Tmux and a bunch of output came to the terminal, I can scroll through it by pressing: ctrl-b [ Now, I have to pick my hands up and go to the arrow keys to scroll up. How do I map the vim keys in scroll mode?
Chris
  • 28,822
  • 27
  • 83
  • 158
20
votes
2 answers

How to switch to the previous pane by any shortcut in tmux?

For example, I have three panes in a window with tmux. Now my cursor is in the second pane. If I use: C-b o I can move to the third pane. But I want to move to the first pane on the second pane. How to do? It can list all the panes in one…
s-cho-m
  • 967
  • 2
  • 13
  • 28
20
votes
0 answers

GDB tui inside TMUX

I'm having trouble using gdb --tui mode inside tmux. The code display becomes garbled after stepping through the code. I'm using gdb 7.6.1 with tmux 1.6. I've also tried tmux 1.9a, and still experience this issue. gdb in tui mode works fine outside…
user3411798
  • 201
  • 2
  • 4
20
votes
5 answers

Is there a way to alias tmux commands?

tmux has a command mode that can be accessed via C-b : and I'm wondering if there is a way to alias commands in my .tmux.conf file like split-window to something I use more often like vsp in vim. I know I can bind keyboard shortcuts with bind but…
Jeff Wu
  • 2,428
  • 1
  • 21
  • 25
20
votes
3 answers

How do I tell which users are connected to a shared tmux socket?

I have created a shared socket for tmux to use. tmux -S /tmp/pair Then I have a 2nd user attach to the socket. tmux -S /tmp/pair attach How do I tell from the first session, the one that created the socket, tell that the 2nd user is connected? I'm…
Jason
  • 3,736
  • 5
  • 33
  • 40
19
votes
2 answers

how to scroll to beginning/end of scroll buffer in tmux?

^b+page up/down scrolls up/down one page of scroll buffer, but how do we scroll to beginning ? like wise with end (besides pressing ^C to kill scrolling)
timotheecour
  • 3,104
  • 3
  • 26
  • 29
19
votes
2 answers

tmux transpose / rearrange panes?

I have a layout right now that looks like 1 *** 2 *** 3 and I want it to look like 1 *** 3 *** 2 I know the command C-b C-o cycles their positions, but it's not possible to write a transposition as a product of cycles, mathematically…
djechlin
  • 59,258
  • 35
  • 162
  • 290
19
votes
4 answers

How do I scroll in tmux using the mouse?

I'm using tmux 1.8 on Mac OS X 1.9.3 in the Terminal.app with an Apple magic mouse. I'm also using oh-my-zsh. I can't scroll at all with the mouse when tmux is running. It just scrolls the whole terminal window up which goes beyond the output of…
RantriX
  • 1,017
  • 1
  • 10
  • 18
19
votes
5 answers

tmux using 1G RAM even after clearing all scrollback history

I use tmux (in fact byobu with tmux backend) on ubuntu 14.04. My tmux uses 1GB of memory (VIRT and RES in top) and I have already used the clear-history command. Now my scrollback is gone but the memory usage is not going down. This tmux was running…
peschü
  • 1,299
  • 12
  • 21
19
votes
2 answers

Configuring solarized colorscheme in gnome terminal, tmux and vim

I'm struggling to make the Solarized colorscheme correctly working on an Ubuntu 13.10 machine inside Vim inside tmux inside the gnome-terminal. I've started configuring gnome-terminal using the script on this repository and it displays the colors…
Carlo
  • 4,016
  • 7
  • 44
  • 65
19
votes
6 answers

Tmux: missing tmux config file?

Just installed tmux via homebrew and I'm trying to locate the system-wide tmux configuration file. The man pages state that the system-wide file should be located in /etc/tmux.conf, but for some reason, it is not there. Where is the default…
Brandon Mercer
  • 403
  • 1
  • 4
  • 10
19
votes
4 answers

Leaving tmux scrollback in terminal (iTerm2)

Usually tmux will only show as much output as however many rows my terminal currently displays. And then when I detach it, it clears all of its content. I know how to look at scrollback (ctrl+A, [, k, ...), but how can I configure tmux to just print…
chbrown
  • 11,865
  • 2
  • 52
  • 60
18
votes
3 answers

How to disable pane switching with ESC in Tmux

I noticed that esc will also start listening for instructions to switch panes. I'm new to Tmux, I copied a Tmux conf file earlier today which should only have enabled alt to switch panes, so I'm not sure if this conf file enabled it or if it's…
Tijsdv
  • 181
  • 1
  • 4
18
votes
3 answers

How to close tab in tmux?

Is there a shortcut key to close a tab? I'm asking for something like creating a tab CTRL b + c What shortcut should I use if I would like to close the 1:cmatrix* tab?
Cristian
  • 1,590
  • 5
  • 23
  • 38
18
votes
1 answer

emacs as a screen/tmux alternative - detach from terminal

It's well known that emacs can be used as a terminal emulator (while itself is running in a terminal emulator), thus making it a valid alternative to more traditional terminal-in-a-terminal approaches, such as tmux or screen. However, there's one…
GreyCat
  • 16,622
  • 18
  • 74
  • 112