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.

Filter by
Sorted by
Tagged with
196 votes
8 answers
393k views

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 ...
user avatar
78 votes
7 answers
212k views

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 ...
globetrotterdk's user avatar
70 votes
13 answers
70k views

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 ...
dhuCerbin's user avatar
  • 801
59 votes
3 answers
28k views

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 here: https://bugs....
Jorge Castro's user avatar
  • 71.8k
55 votes
5 answers
68k views

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 ...
Jitendra Vyas's user avatar
51 votes
2 answers
56k views

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 ...
Chris Magnuson's user avatar
48 votes
6 answers
66k views

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 ...
Mark Harrison's user avatar
47 votes
4 answers
138k views

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's user avatar
  • 7,537
46 votes
3 answers
36k views

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 ...
Sourabh's user avatar
  • 1,761
41 votes
2 answers
48k views

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 ...
Moha the almighty camel's user avatar
40 votes
2 answers
17k views

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 ...
Ashimema's user avatar
  • 2,035
32 votes
3 answers
10k views

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 ...
tseliot's user avatar
  • 378
26 votes
6 answers
22k views

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 ...
WoJ's user avatar
  • 1,315
25 votes
2 answers
16k views

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's user avatar
  • 251
25 votes
1 answer
6k views

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 ...
DeusXMachina's user avatar
24 votes
7 answers
21k views

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's user avatar
  • 313
22 votes
2 answers
12k views

Byobu: open different tabs in different windows of the same session

Let's say I have a byobu session running with multiple tabs open. Then if I open a new terminal, and start byobu, it will take me into the same session. If I then switch byobu tabs in one terminal, ...
Alex's user avatar
  • 2,044
19 votes
3 answers
20k views

Why does upstart keep respawning my process?

I wrote an upstart script to launch a daemon inside a tmux session. It works well and respawns the process if it dies unexpectedly, but I can't seem to stop it manually. The job (called bukkit) looks ...
passy's user avatar
  • 1,139
18 votes
7 answers
42k views

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 ...
dhan's user avatar
  • 181
15 votes
2 answers
14k views

Lock Tmux Session With Vlock

I have just installed tmux and vlock. When I try to perform the lock-session command, my terminal flashes and then nothing happens. Is there something in my .tmux.conf that must be added to tell tmux ...
kzh's user avatar
  • 866
14 votes
2 answers
4k views

Why does tmux/byobu fill my screen with garbage characters when I copy a selection?

When I copy a selection from tmux with a window split, my screen fills up with garbage characters. Depending on the size of the selection, it could be a lot, or just one line. The following images ...
dpb's user avatar
  • 7,069
13 votes
3 answers
17k views

Tmux Colors Not Working

I have a bit of an odd issue as far as I can tell. When I use tmux I don't get color within the terminal (all text is white, even for things like ls), but my colors work perfectly for vim and other ...
Jason Blocklove's user avatar
12 votes
3 answers
15k views

Tmux [exited] on startup

I recently installed Tmux and became really glad for it. All of a sudden I though it would start throwing an error when I try to create a new session from within my terminal: tmux new -s my-session ...
Severin's user avatar
  • 1,511
11 votes
1 answer
9k views

Putty, Byobu, Tmux and function keys

I'm currently trying to use byobu from PuTTY via ssh. I have currently putty-256color as Terminal-type string because otherwise not even Byobu bindings worked and I couldn't create new windows or move ...
devster's user avatar
  • 151
10 votes
5 answers
14k views

tmux: error while loading shared libraries: libevent-2.0.so.5

After upgrade ubuntu 16 to 18, I got this error when executing tmux: tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory and here'...
Sastra Nababan's user avatar
9 votes
2 answers
5k views

Disable keybindings in byobu using tmux backend

I've setup the alt + arrow keys bindings for changing tab in vim (in .vimrc): map <silent><A-Right> :tabnext<CR> map <silent><A-Left> :tabprevious<CR> this ...
Andrea Zonca's user avatar
9 votes
1 answer
3k views

Use multiple byobu sessions, while ignoring unrelated tmux sessions

So, I have access to a shared shell account where other people and I do some work. Some people prefer use tmux, so they have open their tmux sessions, loading config from ~/.tmux.conf. I prefer to ...
elias's user avatar
  • 1,159
9 votes
2 answers
3k views

Remap Caps Lock to Ctrl-b

How can xkb or some other tool be used to permanently bind Caps Lock to ctrl+b while in terminal? (This is to make Caps Lock the default prefix key for tmux. It could also be mapped to a specific key ...
mahemoff's user avatar
  • 667
8 votes
1 answer
15k views

How to see live status changes of a systemctl service?

I have a service that is run via systemctl and I want to see its live status of changes when things change. I have a tmux window open for it and just wanted to get a running account when things change....
Patoshi パトシ's user avatar
8 votes
1 answer
3k views

How to properly launch tmux on terminal startup?

I've used this snippet to launch tmux when the terminal is launched: # TMUX startup if command -v tmux>/dev/null; then [[ ! $TERM =~ screen ]] && [ -z $TMUX ] && exec tmux fi But ...
bpinaya's user avatar
  • 405
8 votes
1 answer
3k views

How to prevent ecryptfs from umounting home if tmux is still running?

I have a server, which i access over ssh. Sometimes i like to run some scripts (some of them in the background) in tmux and then detach it, close the connection and access tmux later. But ...
user121839's user avatar
8 votes
2 answers
10k views

Tmux key binding issue

I've switched from using screen a while back to using tmux. I have a tmux config which uses screen's Ctrl+a sequence, instead of tmux's default Ctrl+b. However, one issue I've found is that if I ...
Morgan Blackthorne's user avatar
8 votes
1 answer
4k views

Open terminal in current directory with tmux

I have a simple .bashrc file at the moment that allows me to always open the same terminal (reopen, actually) running tmux. The important part is shown below. The essence of this is that when you ...
Christophe De Troyer's user avatar
7 votes
5 answers
9k views

Terminal with tmux style screen splitting?

Moving from OS X, loving Ubuntu so far. One thing I'm missing is an iTerm 2 like terminal emulator that allows for easy screen splitting. I could use tmux, but would like to be able to copy and ...
Allyl Isocyanate's user avatar
7 votes
3 answers
13k views

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's user avatar
7 votes
1 answer
1k views

What is the status of GNU screen?

Two answers in this question state that screen is unmaintained. However, the GNU repository of screen shows an upload this year after 6 years, and 14.04 has two newer versions than the earlier Ubuntu ...
muru's user avatar
  • 198k
7 votes
1 answer
6k views

Automatically running tmux in fish

I've recently changed my default shell to fish (from bash). I had tmux set up to run automatically whenever I opened the console with bash, but I'm not sure how to set it up with fish. I tried ...
Luke_0's user avatar
  • 187
7 votes
0 answers
185 views

How to display the name of the program instead of sudo in byobu?

I'm using byobu when working on the shell. If I start a program the name of it is displayed in the status line. However when something is prefixed with sudo it just displays sudo (sudo tail -F /var/...
qbi's user avatar
  • 19.1k
6 votes
4 answers
3k views

gnome-open raises this error when run from inside tmux

The error I get is this: GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for ...
dan's user avatar
  • 3,053
6 votes
2 answers
16k views

How to run zsh and tmux with xterm-256color by default

I am using ubuntu gnome 14.04 and I want to have tmux and zsh opened when I start a new terminal. For now, in my preference of the terminal, I run tmux by default. In the ~/.tmux.conf file I have ...
Dougui's user avatar
  • 241
6 votes
1 answer
4k views

Copy from remote tmux+Vim to local clipboard

I use Kubuntu and sometimes I ssh out into a server and attach to a tmux session there. Is there any way I can select -using the mouse or the keyboard- a large chunk of text (more than une screen ...
Sebastián Grignoli's user avatar
6 votes
2 answers
1k views

How to make byobu start with byobu -u on login/startup?

How do I make byobu start with unicode support by default? If I have done byobu-enable how I can set this -u option?
user avatar
6 votes
1 answer
3k views

Can byobu (tmux) show a multiline status

With byobu-screen the default status line had two lines. With byobu-tmux however the default status line only has one line. I liked the seperate line with the list of windows, it let me see more than ...
johnf's user avatar
  • 896
6 votes
1 answer
4k views

Does losing an ssh session kills commands running in tmux?

The question I know is basic, but could not find an exact matching question in community. The standard process of using tmux is - create a session, run command within and then detach the session. So ...
Sandeep Bhutani's user avatar
6 votes
0 answers
1k views

Configure xfce4-terminal to recognize ANSI OSC 52 escape sequences to control the clipboard

tmux can put text into the system clipboard using ANSI OSC (Operating System Control) 52 escape sequences, but the terminal emulator needs to recognize them. xfce4-terminal, out-of-the-box doesn't ...
Paulo Marcel Coelho Aragão's user avatar
5 votes
4 answers
3k views

tmux becomes unresponsive when tailing a quickly updated file

I have a log file that I am writing a few hundred lines to a second. I want to tail this in a tmux pane. However, when I do this tmux becomes unresponsive - I can't change panes or windows and I can'...
Andy Smith's user avatar
5 votes
1 answer
7k views

Tmux History not preserved

I am facing an issue in which the commands that I run inside the tmux terminal are not found when I exit that tmux session. Can, anyone please help? tmux - using this command to run tmux session echo &...
Kevin Martin's user avatar
5 votes
1 answer
3k views

CTRL-a and CTRL-e map incorrectly in tmux

I like to use command-line commands CTRL-a (beginning of line) and CTRL-e (end of line), but when I start a tmux session, these commands don't work. CTRL-key seems to be interpreted as caret ^, as in ...
Matilda Smeds's user avatar
5 votes
2 answers
3k views

How can I fix nohup, byobu, tmux, screen, etc to not die when I disconnect from SSH?

I'm running KDE Neon which is Ubuntu 18.04 Bionic (LTS) with the latest KDE desktop packages on top of it. Since upgrading to this from Xenial I have lost the ability for processes to survive SSH ...
ironstorm's user avatar
5 votes
2 answers
2k views

How can I bind a key to cycle through panes?

I've got a few tmux key bindings like this, which allow me to switch windows without using the mouse bind -n M-Left select-pane -L ## move left one pane How can I bind a single key that can cycle ...
Mark Harrison's user avatar

1
2 3 4 5