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.

216 questions
207
votes
8 answers

How to kill all tmux sessions (or at least multiple sessions) from the CLI?

How to kill all tmux sessions (or at least multiple sessions) from the (Ubuntu) CLI? When I do ps aux | grep tmux I see 3 processes: UU 2970 0.0 0.0 19556 1228 pts/0 S+ 02:48 0:00 tmux UU 3445 0.0 0.0 12944 988 pts/5 S+ …
user423047
82
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.
70
votes
13 answers

Vim in tmux display wrong colors

I installed Ubuntu 11.10. Then downloaded Solarized theme for Gnome Terminal. From terminal my vim looks good: plugin vim-powerline displays correctly and syntax is highlighted with proper colors. But when I run tmux and there run vim - syntax…
dhuCerbin
  • 801
63
votes
5 answers

How do I access tmux session after I leave it?

I'm using tmux on EC2 AWS but I want to see what is going on in one session I created. I use Ctrl+b and then d to leave the session.
Vitor Abella
  • 8,015
  • 16
  • 63
  • 115
59
votes
3 answers

How do I make the F-keys work in byobu, for midnight commander (mc), htop, etc?

I use byobu with the tmux backend on my 12.04 server. I'd like to use the midnight commander shortcut keys with it, but the F keys don't work. I've seen some posts on the issues…
Jorge Castro
  • 73,717
57
votes
5 answers

What is the difference between Terminator and Tmux ?

What is the different between Tmux and Terminator? I currently use Terminator which allows me to add more shell in same screen by splitting them horizontally or vertically. I read about them in some articles but I'm still not able to figure out the…
55
votes
2 answers

How do I see the history of the commands I have run in tmux?

I am running 12.04 server and when I type history in bash I see most of the commands I have entered into bash but I don't see the commands I have entered when in a tmux session. How do I see the history of the commands I have run inside a tmux…
53
votes
3 answers

UTF-8 character not showing properly in tmux

I use ♪ character in my zsh theme's for prompt. But in tmux, my prompt was behaving weirdly, showing extra spaces, like this: ♪ ~ I can type from here ♪ ~ Instead of here like in zsh, and sometimes when I do stuff like cd ♪ ~ cd ~ ♪ ~ cdcd / ♪ ~…
Sourabh
  • 1,911
49
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…
42
votes
2 answers

What are socket files?

Recently, I started using tmux; I'm trying to use the pair programming feature in that software. During the process a socket file was created. My question is: what are socket files, how am I to open them on Ubuntu and how are they used?
41
votes
2 answers

How do I change the default shell used in Byobu (tmux)?

I've become addicted to Byobu and I've recently shifted from bash to zsh; Now I want to combine the two, however I have a one initial pre-requisite: I cannot make zsh the default shell for my user as it's a shared account and the rest of the team…
Ashimema
  • 2,075
32
votes
3 answers

How to use Byobu keybindings in a nested remote session?

I'm using Byobu (with Tmux, inside of gnome-terminal) and I have a problem with its keybindings (which I probably fail to understand). I launch byobu, open a few windows then, from one of these windows, I ssh into another machine and launch byobu…
tseliot
  • 378
30
votes
1 answer

Clicking in ssh terminal causes 'junk' characters [0;83;32M0] after tmux

Both my local and remote are Ubuntu 18, though I have seen it in 16 as well. I establish a ssh to my remote server, start tmux (2.1.3), something causes the pipe to break. When I ssh back in, but before I start tmux, whenever I click in the…
27
votes
6 answers

How to run tmux/screen with systemd > 230?

I run 16.04 and systemd now kills tmux when the user disconnects (summary of the change). Is there a way to run tmux or screen (or any similar program) with systemd 230? I read all the heated disussion about pros and cons of the behavious but no…
WoJ
  • 1,345
25
votes
2 answers

How to get byobu to launch tmux instead of screen?

The latest versions of byobu should apparently be configurable to run tmux instead of screen, but I haven't been able to. Advice appreciated
yitzhakbg
  • 251
1
2 3
14 15