tmux是一个终端屏幕管理工具,tmux可以从一个屏幕创建,访问和控制多个终端。tmux可能会与屏幕分离,并继续在后台运行,然后再重新连接。
文章目录
$ tmux
-u # UTF8 mode
-S ~/.tmux.socket$ tmux new
$ tmux new -s session_name
$ tmux attach # Default session
$ tmux attach -s session_name
$ tmux switch -t session_name
$ tmux ls # List sessions
$ tmux detach$ tmux new-windowC-b ?C-b [ # Enter scroll mode then press up and downC-b [ # 1. Enter scroll mode first.
Space # 2. Start selecting and move around.
Enter # 3. Press enter to copy.
C-b ] # PasteC-b % # vert
C-b " # horiz
C-b hkjl # navigation
C-b HJKL # resize
C-b o # next window
C-b x # close pane
C-b { or } # move windows aroundC-b c # New window
C-b 1 # Go to window 1
C-b n # Go to next window
C-b p # Go to previous window
C-b w # List all windowC-b d # Detach
C-b ( ) # Switch through sessions
$ tmux attachC-b t # Time