tmux installation
sudo apt-get install tmux
Easy Guide
1. Run tmux
tmux
2. All commands in tmux are triggered by a prefix key followed by a command key (quite similar to emacs). By default, tmux uses Ctrl-b as prefix key. Thus Ctrl-b simply means press the Ctrl and b keys at the same time.3. Splitting panes
Ctrl-b % : split horizontal paneCtrl-b " : split vertical pane
4. Navigating panes
Ctrl-b Left : switch to left paneCtrl-b Right : switch to right pane Ctrl-b Up : switch to up paneCtrl-b Down : switch to down pane Ctrl-b p : switch to previous pane Ctrl-b n : switch to next pane
5. Adjust pane size
Ctrl-b Ctrl-Left : resize horizontal paneCtrl-b Ctrl-Right : resize horizontal pane Ctrl-b Ctrl-Up : resize vertical paneCtrl-b Ctrl-Down : resize vertical paneCtrl-b z : make a pane go full screen or to shrink it back to its previous size6. Closing panes / window
Ctrl-b d or exit : close pane or windowhttp://www.hamvocke.com/blog/a-quick-and-easy-guide-to-tmux/
沒有留言:
張貼留言