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
482
votes
11 answers

Is there any way to redraw tmux window when switching smaller monitor to bigger one?

I started a tmux session on a smaller terminal. When I "attach" to the same session on a larger resolution monitor, it draws dots around the console. It doesn't fit the new window size. Is there any way to redraw and clean the window? CTRL+L or…
Nobu
  • 9,965
  • 4
  • 40
  • 47
480
votes
5 answers

How do I increase the scrollback buffer size in tmux?

How do I increase the scrollback buffer size in tmux? If I enter copy mode, the number of available scrollback lines is always below 2000.
moon.musick
  • 5,125
  • 2
  • 23
  • 23
385
votes
25 answers

How do I set tmux to open specified windows at startup?

How do I set up tmux so that it starts up with the specified windows opened?
satoru
  • 31,822
  • 31
  • 91
  • 141
325
votes
10 answers

"tmux set -g mouse-mode on" not scrolling

To allow scrolling a tmux pane with a mouse, I put the following in my ~/.tmux.conf file: set -g mouse-mode on However, nothing changes. When I scroll, it still scrolls outside of tmux. Why is this?
David says Reinstate Monica
  • 19,209
  • 22
  • 79
  • 122
308
votes
11 answers

How do I terminate a window in tmux?

How do I terminate a window in tmux? Like the Ctrlak shortcut in screen, where Ctrla is the prefix.
Dmitry
  • 3,861
  • 5
  • 20
  • 21
259
votes
12 answers

How to send a command to all panes in tmux?

I like to call :clear-history on panes with a huge scrollback. However, I want to script a way to send this command to all the panes in the various windows. I know how to send a command to all the windows, courtesy of this question, but how do I…
Ehtesh Choudhury
  • 7,452
  • 5
  • 42
  • 48
258
votes
26 answers

lose vim colorscheme in tmux mode

I'm running iterm2 and when I'm in tmux mode the colorscheme I have set in vim does not show up. Only the color scheme I've set in iterm. If I run vim from shell the colorscheme appears correct - its only when I'm in tmux mode. I've tried setting…
tristen
  • 4,605
  • 4
  • 24
  • 19
253
votes
3 answers

How do I disconnect all other users in tmux?

I've got a tmux session where the window is too small because some user somewhere is connected. How do I tell tmux to disconnect all connected users?
Drew LeSueur
  • 19,185
  • 29
  • 89
  • 106
250
votes
16 answers

How do I clear the scrollback buffer in tmux?

I want to clear all scrollback history in a particular tmux pane.
Daya Sharma
  • 2,855
  • 2
  • 15
  • 12
247
votes
5 answers

Keep the window's name fixed in tmux

I want to keep the windows' name fixed after I rename it. But after I renaming it, they keep changing when I execute commands. How can I keep them in a static name?
Xiezi
  • 2,949
  • 3
  • 21
  • 29
222
votes
9 answers

How do I rename a pane in tmux?

How do I rename a pane in tmux?
ovolax
  • 2,387
  • 2
  • 12
  • 7
212
votes
5 answers

Tmux: How do I find out the currently running version of tmux?

I know that I can run tmux -V to find the version of tmux that is in my PATH, but how can I get the version of tmux that is currently running?
quant
  • 21,507
  • 32
  • 115
  • 211
170
votes
2 answers

How to join two tmux windows into one, as panes?

I have two tmux windows, with a single pane in each, and I would like to join these two panes together into a single window as a horizontal split panes. How could I do that?
RNA
  • 146,987
  • 15
  • 52
  • 70
163
votes
3 answers

How to send commands when opening a tmux session inside another tmux session?

A typical situation may be: $ tmux [0] $ ssh example.com $ tmux attach [0] $ I open a tmux session, then ssh in to a server and attach to an existing tmux session. At this point I have one tmux session inside another. How do I send…
Kris
  • 19,188
  • 9
  • 91
  • 111
159
votes
8 answers

How to create new tmux session if none exists

I am trying to figure out how to attach to a tmux session if a named tmux session exists, if not I want to create a new one with the given name. Currently, I know of a few tmux commands which can partly achieve what I am looking for, but its not…
rampion
  • 87,131
  • 49
  • 199
  • 315
1
2 3
99 100