Markdown supported: # Heading, **bold**, *italic*, `code`, - list items, etc.
Tip: Paste images directly from clipboard or drag-and-drop to upload!
Basic tmux Commands
tmux keeps terminal sessions running in the background, even after you disconnect from SSH.
Start a new session
The -s work option names the session. To start an unnamed session, run tmux.
List sessions
Detach from a session
Press Ctrl + b, then press d to detach and put the session in the background. Any programs inside it keep running.
Reattach to a session
Short form:
Rename a session
tmux rename-session -t work project
Remove a session
tmux kill-session -t work
To remove all tmux sessions:
Inside a session, run exit to close the current shell. If it is the last shell, tmux removes the session.
Quick workflow
tmux new -s work
tmux ls
tmux attach -t work
tmux kill-session -t work