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.
1,379 questions
1
vote
1
answer
45
views
How to run tmux session under network namespace
If there are no sessions (eg tmux a returns "no sessions") a call to start tmux under a namespace (eg sudo ip netns exec ns1 tmux new -s test) will have the shells within (even newly spawned ...
-1
votes
0
answers
45
views
How to wait for a detach tmux session
So basically I am running a detached tmux session and run a script.
This script does some task and does ssh port forwarding. (All good on the script part and works fine).
Now the detached session ...
0
votes
1
answer
72
views
Tmux root bind-key won't move up
I am using tmux 3.4 on elementaryOS with the built-in terminal.
I have a root keybinding for Meta-Arrow to move between panes, but the one for pane up is not working. When I view the keybinds:
# ... ...
0
votes
0
answers
68
views
nix command not found in tmux panes and windows
I use nix and home manager, zsh and tmux. My problem is that in tmux splits the nix command does not exist. I tried setting default shell in tmux to /bin/zsh -l sourcing files etc, I notice the PATH ...
2
votes
1
answer
101
views
Tmux pane with long-running session using wrong character set?
Today I connected to a long-running process in tmux over ssh for work, to find that the pane the process was running in seems to have started using the wrong character encoding for its output, leading ...
0
votes
2
answers
62
views
Starting tmux from outside home directory does not source .bash_improvements
I'm running Ubuntu server (version 24.04.2 LTS). I'm quite happy with it. Sometimes I need longrunning processes, therefore I start them in a tmux session. But I have a small issue when I run tmux. In ...
1
vote
1
answer
119
views
Cannot use ctrl + p / n to view previous / next history when using tmux
I am using kitty + zsh + tmux on MacOS. Without tmux, I can just use Ctrl + p or Ctrl + n to scroll through the zsh history. However, when I have tmux running and without any configuration done, ...
0
votes
0
answers
37
views
can't navigate to previous command when a console app is daemonized with tmux and systemd
I recently moved from running minecraft bedrock server inside PM2 to systemd. If I put the executable inside ExecStart normally, I can't enter commands to the mcbe console. When I search for solution, ...
0
votes
0
answers
76
views
How do I move tmux command prompt `:` to the center of the message line?
As title. In short, I would like to have : shown in the middle of the message line when I press the default keybind <prefix>: for opening the command prompt.
I have tried my best finding the ...
1
vote
1
answer
126
views
SSH freezes on login after server banner
Trying to login to my local server with user1, the shell freezes after the login banner:
Linux server 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64
The programs included ...
1
vote
1
answer
134
views
tmux: show status bar of each session when choosing
In tmux, the command to select a session opens a chooser like this (not sure from the man page exactly what to call it):
(0) + controller 1 windows
(1) + model: 2 windows
(2) + view: 4 windows
(...
-1
votes
1
answer
72
views
tmux quoting problem within display-menu
This command works as expected if I run it in the tmux command line:
list-panes -a -F "pane ID: #{p3:pane_id} TTY: #{p11:pane_tty}"
Output:
pane ID: %1 TTY: /dev/pts/35
pane ID: %2 TTY:...
2
votes
1
answer
52
views
tmux - when splitting, changes simlinked path to unsimlinked path
I have the following binding to allow me to do a vertical split in tmux
bind v split-window -h -c "#{pane_current_path}"
This lets me open a new split, and it defaults to the same folder as ...
0
votes
1
answer
38
views
changing to other sessions in tmux without hot keys
recently I've learned this new part of Linux known as tmux, and my overall thought: a absolute beauty, tmux has helped me more and more as I get deeper into Linux and as I make more projects, but for ...
1
vote
1
answer
546
views
`Sessions should be nested with care. Unset $TMUX to force.` using Byobu and Fish load on boot
Since upgrading my server to Ubuntu 24.04 I keep being instantly logged out. When I connect with SSH, it just states [exited]. There seems to be no way of logging into my account anymore.
It is a ...