Tmux Reference Flashcards

1
Q

What is tmux?

A

Terminal multiplexer, a multiplexer allows terminal insider another terminal. tmux will keep your session running even if your network connection drops.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Starting tmux?

A

> tmux

Exiting tmux
> exit
entering exit in the last tmux window will exit tmux and return back to regular terminal session.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Tmux prefix key?

A

‘CTRL b’ - the prefix key followed by a command allows you to communicate with tmux, not the bash shell.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Sessions

A

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’
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Splits?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly