tmux
Screen multiplexer. A more "modern" alternative to screen. The default command prefix is Ctrl
+ b
.
Various commands
Ctrl
+b
-c
→ Create a new window.Ctrl
+b
-,
→ Rename the current window.Ctrl
+b
-w
→ Allows moving between windows with arrows (up/down).Ctrl
+b
-n
→ Move to next window.Ctrl
+b
-p
→ Move to previous window.Ctrl
+b
-<number>
→ Move to a specific window.Ctrl
+b
-&
→ Get rid of all the windows.Ctrl
+b
-f
→ Search windows by name.Ctrl
+b
-.
→ Change window index number.
Dealing with panes
Ctrl
+b
-"
→ Split vertically.Ctrl
+b
-%
→ Split horizontally.Ctrl
+b
-x
→ Destroy the current pane.Ctrl
+b
-<arrows>
→ Move between panes.Ctrl
+b
-;
→ Move to the last active pane.Ctrl
+b
-Ctrl
+<arrows>
→ Resize the pane by one line.Ctrl
+b
-Alt
+<arrows>
→ Resize the pane by five lines.Ctrl
+b
-{
→ Swap the current pane with the previous one.Ctrl
+b
-}
→ Swap the current pane with the next one.Ctrl
+b
-z
→ Zoom in/out.Ctrl
+b
-t
→ Display a clock within a pane (q
to kill it).Ctrl
+b
-!
→ Turn pane into a window.
Dealing with sessions
Ctrl
+b
-s
→ List sessions while withintmux
(tmux ls
while outside of it).Ctrl
+b
-$
→ Rename a session.Ctrl
+b
-d
→ Detach from a session.tmux a
→ Attach to a session.
Unless specified otherwise, this work is licensed under a Creative Commons BY-NC-SA 4.0.