tmux — terminal multiplexer
cheat sheet · tmux 3.x https://lab.dimsanych.ru/en/wiki/tmux/Cheat sheet
-
tmux new -s namenew named session -
tmux lslist sessions -
tmux attach -t nameattach to a session -
tmux kill-session -t namekill a session -
Ctrl+b ddetach — the session keeps running -
Ctrl+b cnew window
Options
~/.tmux.conf (common settings):
From a script: tmux new -d -s job 'long-cmd' (run in the background),
tmux send-keys -t job 'cmd' Enter.