tmux new [-s name] [cmd]
(:new
) - new session
tmux ls
(:ls
) - list sessionstmux switch [-t name]
(:switch
) - switches to an existing sessiontmux as [id] [-t name]
(:attach
) - attaches to an existing session<C-a>c
(:detach
) - detach the currently attached session
<C-a>s
- list sessions<C-a>$
- name session
tmux kill-session [-t name]
(:kill-session
)
<C-a>c
(:neww [-n name] [cmd]
) - new window
<C-a>[i]
(:selectw -t [i]
) - go to window[i]
<C-a>l
- go to last window<C-a>p
- go to previous window<C-a>n
- go to next window
<C-a>T
- rename window<C-a>,
- rename window<C-a>w
- list all windows<C-a>f
- find window by name<C-a>.
- move window to another session (promt):movew
- move window to next unused number
<C-a>&
(:kill-window
) - kill window
- (%)
<C-a>|
(:splitw [-v] [-p width] [-t focus] [cmd]
) - split current pane vertically - (")
<C-a>s
(:splitw -h [-p width] [-t focus] [cmd]
) - split current pane horizontally
<C><k>
(:selectp -U
) - move cursor to the pane above<C><j>
(:selectp -D
) - move cursor to the pane below<C><h>
(:selectp -L
) - move cursor to the pane to the left<C><l>
(:selectp -R
) - move cursor to the pane to the right
<C-a>x
(:kill-pane
) - kill current pane