tmux
- Auto Attach to tmux session on SSH
- SSH Agent forwarding with tmux
- tmux create new window on current directory
- run same command on multiple tmux panes
- Reorder windows in tmux
To attach to a specific session, run
tmux a -t SESSION_ID
CTRL+B % | Split window vertically |
CTRL+B “ | Split window horizontally |
CTRL+B c | Create new window |
CTRL+B d | Detach tmux session |
CTRL+B $ | Rename session |
CTRL+B n | Next window. |
CTRL+B p | Previous window. |
CTRL+B arrow keys | switch between panes. |
.tmux.conf
.tmux.conf file is used to configure tmux
Here is the .tmux.conf i use
https://gist.github.com/serverok/f8f729e2c22a5ab1fa6b0d82765bcddc
If you change this file, you need to restart the terminal or run
tmux source-file .tmux.conf
Scroll Mode in tmux
To scroll, you need to enter scroll mode by pressing
CTRL + B, then press PageUp key. CTRL + B, then [
To exit scroll mode, press q