tmux
Sessions
Start session
tmux new
tmux new -s mysession
Show sessions
- tmux ls
Kill sessions
tmux kill-
sessionsession -t mysessiontmux kill-session -a
Attach sessions
tmux a
tmux a -t #
tmux a -t mysession
Other
- Detach from session: [Ctrl - b] + d
- Rename session: [Ctrl - b] + $
- Move to previous session: [Ctrl - b] + (
- Move to next session: [Ctrl - b] + )
Copy Mode
- Enter copy mode: [Ctrl - b] + [
- Exit copy mode: q
FAQ
Window 無法固定標題名稱
Solution:
~/.tmux.conf
set-option -g allow-rename off
Learn