[Cheatsheet] Tmux
make me a cheatsheet for tmux
Creating and Managing Sessions:
- To start a new session:
tmux new
- To start a new session with a specific name:
tmux new -s session_name
- To attach to a session:
tmux attach
- To attach to a specific session:
tmux attach -t session_name
- To switch between sessions:
tmux switch -t session_name
- To list all sessions:
tmux ls
- To detach from a session without closing it:
Ctrl-b d
- To kill a session:
tmux kill-session -t session_name
Managing Windows:
- To create a new window:
Ctrl-b c
- To switch to the next window:
Ctrl-b n
- To switch to the previous window:
Ctrl-b p
- To rename a window:
Ctrl-b ,
- To close a window:
Ctrl-b &
Managing Panes:
- To split a window vertically:
Ctrl-b %
- To split a window horizontally:
Ctrl-b "
- To switch between panes:
Ctrl-b arrow key
- To resize a pane:
Ctrl-b Ctrl-arrow key
- To close a pane:
Ctrl-b x
Other Useful Commands:
- To display a list of keybindings and commands:
Ctrl-b ?
- To reload the tmux configuration file:
Ctrl-b r
- To detach all clients from a session:
tmux detach-client -a
Please note that the keybinding Ctrl-b
is the default prefix for tmux commands, but you can customize it in the tmux configuration file if desired.
You can find more detailed information and additional commands in the following sources:
created: 2023-06-19T15:06:47 (UTC +02:00)
tags: []
source: https://www.phind.com/search?cache=63d9dc9b-943f-478f-8e41-c57c9718a93b
author: