Tmux Cheat Sheet
Posted on November 4, 2023 (Last modified on April 3, 2024) • 1 min read • 154 wordsIt is a command line tool which will allow you to run multiple programs.
Instructions for installing Tmux can be found at https://github.com/tmux/tmux/wiki
Using a terminal type tmux
and you’ll be dropped into a Tmux session.
Key Command | Description |
---|---|
tmux | Start a session |
tmux new -s Test | Start a new session called Test |
tmux ls | List any active sessions |
tmux attach -t # | Connect to an active session (# = session number) |
tmux rename-session -t # new_name | Rename a session (# = session number) |
exit or ctrl-d | Exit an active session, window, or pane |
ctrl-b then shift-5 | Create another pane |
ctrl-b then arrow keys | Move between panes |
ctrl-b then c | Create a new window |
ctrl-b then n | Move to the next window |
ctrl-b then p | Move to the previous window |
ctrl-b then d | Detach current session |
ctrl-b then D | Detach session of choice |