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.

203 questions
192
votes
7 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
75
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.
globetrotterdk
  • 955
  • 1
  • 9
  • 12
69
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
  • 791
  • 1
  • 5
  • 3
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
  • 70,934
  • 124
  • 466
  • 653
54
votes
4 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…
Jitendra Vyas
  • 1,073
  • 4
  • 13
  • 19
47
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…
Chris Magnuson
  • 573
  • 1
  • 4
  • 6
45
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,731
  • 5
  • 22
  • 31
44
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…
Mark Harrison
  • 653
  • 1
  • 6
  • 11
41
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?
Moha the almighty camel
  • 1,703
  • 4
  • 15
  • 24
38
votes
4 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
  • 7,257
  • 12
  • 55
  • 102
38
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
  • 1,965
  • 3
  • 19
  • 19
31
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
  • 368
  • 4
  • 6
26
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,315
  • 6
  • 19
  • 33
24
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
  • 241
  • 1
  • 2
  • 4
24
votes
7 answers

How to install new tmux 1.8 on Ubuntu 12.10 or 12.04?

Are there any PPA? If no, how to make it from sources? Which dev libs I'll need to do this?
kemmotar
  • 303
  • 1
  • 2
  • 6
1
2 3
13 14