What is a terminal multiplexer? It lets you switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal. And do a lot more. See the manual.
A damned good cheatsheet (remember that the default prefix is 'ctrl-b')
https://tmuxcheatsheet.com/
A Crash Course from Thoughtbot
https://robots.thoughtbot.com/a-tmux-crash-course
By default [prefix]
means pressing and releasing the ctrl
and b
keys together. The tmux config
attached to this gist rebinds [prefix]
to ctrl-a
, which is a way easier to type.
tmux
creates new tmux sessiontmux attach -t [target session]
reattaches to an existing session
tmux create-window
or[prefix]-c
creates a new window, like a tab in Chrometmux previous-window, tmux next-window
or[prefix]-(, [prefix]-)
move between-windows[prefix]-(number)
selects the window with that ID
tmux split-window
or[prefix]-"
split a window verticallytmux split-window -v
or[prefix]-%
split a window horizontallytmux select-pane -[UDLR]
or[prefix]-(arrow key)
select the next pane in that direction
2-.tmux.conf, line 8:
Typo, prefix instead of prefux