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

Features that differentiate tmux from GNU Screen are:

  • menus for interactive selection of running sessions, windows or clients
  • window can be linked to an arbitrary number of sessions
  • vi-like or Emacs command mode (with auto completion) for managing tmux
  • lack of built-in serial and telnet clients
  • different configuration language
  • different command keys—it is not a drop-in replacement for screen

For more information have a look at the Sourceforge project page of tmux.

206 questions
78
votes
7 answers

Where is the default tmux.conf file located?

I want to copy the default tmux.conf file to my home directory, but I can't find the location in Ubuntu 12.04. The man page states that the file resides at /etc/tmux.conf however this does not match with my setup.
48
votes
6 answers

How to start tmux with several panes open at the same time?

Suppose I start tmux and immediately execute Ctrl+b+% and Ctrl+b+". This gives me a tall pane on the left side of the screen; the right side of the screen has a top and bottom pane. How can I configure tmux to start in this configuration without…
18
votes
7 answers

Ctrl-b + c, %, n, w, etc not working in tmux console

I installed tmux using sudo apt-get install tmux on my Ubuntu 16.04 system. I tried running tmux by simply typing tmux in terminal.That went on fine. But none of the functions like "creating new window Ctrl-b + c" , "list windows Ctrl-b + w ",…
dhan
  • 181
  • 1
  • 1
  • 4
7
votes
3 answers

My Ubuntu server shows tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968 when I try to run tmux. How can I fix it?

My VPS is NAT. It shows tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968 when I try to run tmux command. How can I fix it?
Bangladesh 71
  • 181
  • 1
  • 2
  • 5
4
votes
2 answers

How can I rejoin my existing tmux session - but if I don't have a session running, create a new one

I use tmux quite a bit, especially on remote servers that I connect to via SSH. I can start a new tmux session by simply running tmux, and I can re-connect to an existing session with tmux a. But, if I run tmux a, and I don't have a session running,…
cocomac
  • 3,394
4
votes
1 answer

How to open new Tmux pane horizontally with 20% tall?

Normally I have to create a new horizontal pane with Ctrl + b + _ and then resize it down with Ctrl + b + J How can I configure tmux to do this with just one command?
Tai Nguyen
  • 81
  • 8
2
votes
0 answers

Shared tmux session as different users

We have been trying to create numerous shared Tmux sessions for various games on our server. A quick google showed up with solutions such as: tmux -S /tmp/game new -s game chgrp game /tmp/game # then connect via tmux -S /tmp/game attach -t…
Pandee
  • 21
2
votes
1 answer

opening a very long url in tmux terminal

I have a problem with opening very long URL in tmux. In my case the URL is longer than a line and tmux break it into multiple lines. However when I use mouse to click on the URL, it only opens the first line of the URL and ignore the rest. I am…
iampat
  • 121
2
votes
1 answer

tmux does not size down to smallest client

I updated to 3.4 and now when I have two different clients attached to one session it used to be, that the 'smallest' client would dictate the size. Now the client where you made the last input dictates the size and the other clients sort of 'zoom…
2
votes
1 answer

Tmux lost server problem

My question is about TMUX lost-server issue. Can anyone please help me out on how to resolve the lost server issue? I accidently killed the server using tmux kill-server command.
1
vote
1 answer

tmux on Ubuntu - how to copy/paste the entire terminal or multiple terminal pages?

Does anybody know how, in Ubuntu using tmux, to copy an entire terminal and/or copy multiple terminal pages? The usual trick I use in the terminal in a non-tmux session is to scroll up to the top of where I'd like to highlight, left click and drag…
cdahms
  • 1,773
1
vote
2 answers

Start the first terminal from tmux

I usually start my second terminal from tmux by a cumbersome steps 1) Start a terminal ( I used alacritty) 2) initiate a tmux session tmux new -s 'main' 3) start a second terminal alacritty The I closed the first terminal and work on the second…
Wizard
  • 2,891
1
vote
0 answers

Tmux help - keeping the session open after script completion

I want to run one command to start tmux AND run a command, but I want the tmux session to stay open after the command finishes in tmux. The command I'm currently using is:tmux new-session -d -s minecraft_server 'bash /home/ratus5/script.sh' This…
1
vote
0 answers

Errors In tmux in ubuntu 18.04

while running tmux the following errors are shown in ubuntu 18.04 : X Error of failed request: BadName (named color or font does not exist) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 16 (RRCreateMode) …
0
votes
0 answers

tmux-aware terminal programs

iTerm on OSX features tmux support for opening windows and tabs. I haven't found anything similar on ubuntu: Is this the case? In its absence, what's the workflow for having multiple persistent sessions on a remote host? Switching [C-b n] seems…
rongenre
  • 101
1
2