| screen | tmux | |
| list session | $ screen -ls | $ tmux ls |
| attach session | $ screen -r | $ tmux a -t [target-session] |
| detach | $ screen -d [host.tty] [Ctrl+a] d |
[Ctrl+b] d |
| new window | [Ctrl+a] c | [Ctrl+b] c |
| close window | [Ctrl+a] k | [Ctrl+b] & |
| list window | [Ctrl+a] " | [Ctrl+b] w |
| name window | [Ctrl+a] A | [Ctrl+b] , |
| help | [Ctrl+a] ? | [Ctrl+b] ? |
| move window | :number [0-9] |
|
| jump prev window | [Ctrl+a] p | [Ctrl+a] p |
| jump next window | [Ctrl+a] n | [Ctrl+a] n |
| jump window | [Ctrl+a] [0-9] | [Ctrl+b] [0-9] |
| split window (vertical) | [Ctrl+a] S | [Ctrl+b] " |
| split window (horizontal) | [Ctrl+b] % | |
| jump panel | [Ctrl-a] tab 就可以切到下面的視窗, [Ctrl-a] Ctrl-a 下面的視窗就可以到處切換, [Ctrl-a] Q 就將分割的視窗關掉, |
[Ctrl+b] [Up, Down, Left, Right] |
| resize panel | [Ctrl+b] [Alt + [Up, Down, Left, Right]] | |
| set window title | [Ctrl-a] :title window_name | [Ctrl+b] , |
| set session name | [Ctrl-a] :sessionname the_session_name | [Ctrl+b] $ |
Reference :
screen 教學 | Tsung's Blog
tmux shortcuts & cheatsheet
沒有留言:
張貼留言