tmux command quick reference

tmux is a command-line tool for “terminal multiplexing” which means to run multiple concurrent terminals inside a single terminal. It is useful for that purpose alone, but on ARC systems, it also provides a way to make a shell on a remote system persist through disconnections. This is a handy when you either want to resume an existing sessions or to avoid having a long-running session killed due to disconnection.

tmux preferred on ARC systems over screen

While screen provides similar functionality, ARC recommends using tmux instead because it appears to have a more active support in the Linux community.

Quick usage guide

Create a new session named “mysession” tmux new -s mysession

Disconnect from a session using “Ctrl+b”, then “d”. The “Ctrl+b” sequence is how you give commands to the running session and “d” is the command for disconnecting.

Attach to the last tmux session you started on this node” tmux attach

List all sessions: tmux list-sessions

Attach to a specific session by name tmux attach-session -t <sessionname>