2013-09-03 11:10:20 +02:00
|
|
|
# Start tmux:
|
2013-09-03 11:08:25 +02:00
|
|
|
tmux
|
|
|
|
|
2013-09-03 11:10:20 +02:00
|
|
|
# Detach from tmux:
|
|
|
|
Ctrl-b d
|
2013-09-03 11:08:25 +02:00
|
|
|
|
2013-09-03 11:10:20 +02:00
|
|
|
# Restore tmux session:
|
2013-09-03 11:08:25 +02:00
|
|
|
tmux attach
|
|
|
|
|
2014-03-04 20:24:22 +01:00
|
|
|
# Detach an already attached session (great if you are moving devices with different screen resolutions)
|
|
|
|
tmux attach -d
|
|
|
|
|
2013-09-03 11:10:20 +02:00
|
|
|
# Display session:
|
2013-09-03 11:08:25 +02:00
|
|
|
tmux ls
|
|
|
|
|
2016-02-20 04:09:02 +01:00
|
|
|
# Rename session:
|
|
|
|
Ctrl-b $
|
|
|
|
|
|
|
|
# Switch session:
|
|
|
|
Ctrl-b s
|
|
|
|
|
2013-09-03 11:10:20 +02:00
|
|
|
# Start a shared session:
|
2013-09-03 11:08:25 +02:00
|
|
|
tmux -S /tmp/your_shared_session
|
|
|
|
chmod 777 /tmp/your_shared_session
|
|
|
|
|
2013-09-03 11:10:20 +02:00
|
|
|
# Help screen (Q to quit):
|
|
|
|
Ctrl-b ?
|
2013-09-03 11:08:25 +02:00
|
|
|
|
2013-09-03 11:10:20 +02:00
|
|
|
# Scroll in window:
|
|
|
|
Ctrl-b PageUp/PageDown
|
2013-09-03 11:08:25 +02:00
|
|
|
|
2014-03-04 20:24:22 +01:00
|
|
|
# Reload configuation file
|
|
|
|
Ctrl-b : source-file /path/to/file
|
|
|
|
|
2013-09-03 11:08:25 +02:00
|
|
|
# Window management
|
|
|
|
# =================
|
|
|
|
|
2013-09-03 11:10:20 +02:00
|
|
|
# Create window:
|
|
|
|
Ctrl-b c
|
2013-09-03 11:08:25 +02:00
|
|
|
|
2013-09-03 11:10:20 +02:00
|
|
|
# Destroy window:
|
|
|
|
Ctrl-b x
|
2013-09-03 11:08:25 +02:00
|
|
|
|
2013-09-03 11:10:20 +02:00
|
|
|
# Switch between windows:
|
|
|
|
Ctrl-b [0-9]
|
2013-09-03 11:08:25 +02:00
|
|
|
or
|
2013-09-03 11:10:20 +02:00
|
|
|
Ctrl-b Arrows
|
2013-09-03 11:08:25 +02:00
|
|
|
|
2013-09-03 11:10:20 +02:00
|
|
|
# Split windows horizontally:
|
|
|
|
Ctrl-b %
|
2013-09-03 11:08:25 +02:00
|
|
|
|
2013-09-03 11:10:20 +02:00
|
|
|
# Split windows vertically:
|
|
|
|
Ctrl-b "
|