Tmux Reference Flashcards
What is tmux?
Terminal multiplexer, a multiplexer allows terminal insider another terminal. tmux will keep your session running even if your network connection drops.
Starting tmux?
> tmux
Exiting tmux
> exit
entering exit in the last tmux window will exit tmux and return back to regular terminal session.
Tmux prefix key?
‘CTRL b’ - the prefix key followed by a command allows you to communicate with tmux, not the bash shell.
Sessions
Running the ‘tmux’ command at the terminal will start a new session.
- To detach from the current session:
prefix key then ‘d’
will detach you from your session. Note that this does not exit the session the
session is still running in the background even if you then exit tmux. To close the
session you must be attached to it and execute the exit command.
- To view your open sessions:
run ‘tmux list-sessions’ or ‘tmux ls’
-To re-attach to a session
run ‘tmux attach’ or ‘tmux a’
Splits?
Vertical split
After sending ‘CTRL b’ enter ‘%’
Horizontal split
After sending ‘CTRL b’ enter ‘ SHIFT “ ‘ (double quotes)
Navigating between panes
prefix key then directional arrow keys