Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- to make a tmux session and name it `tmux new -s bob`
- to detach tmux - `ctrl +b` + dd
- to list tmux sessions - `tmux ls`
- to attach to tmux's session - `tmux -a -t $number of session or name`
- to kill tmux's session - `tmux kill-session -t bob
- split screen horizontally - `ctrl +b` + %
- split screen vertically - `ctrl +b` + "
- to move between screens - `ctrl +b` + arrows or `ctrl +b` + q
- example `ctrl +b` + q + 2
- Hold down `Ctrl +b` and arrows to change the size of the screen
- to make a new window - `ctrl + b` +c
- Jump within windows - `ctrl +b` + n
- Better way to jump within windows - `ctrl +b` + w (can kill a window via `ctrl +b` +x)
- rename window's name - `ctrl +b +,
- to kill all windows - `ctrl+b` +&
- to kill all sessions - `tmux kill-server
- Ctrl+B Alt+1: Even horizontal splits
- Ctrl+B Alt+2: Even vertical splits
- Ctrl+B Alt+3: Horizontal span for the main pane, vertical splits for lesser panes
- Ctrl+B Alt+3: Vertical span for the main pane, horizontal splits for lesser panes
- Ctrl+B Alt+5: Tiled layout
- Basic conf settings:
- vi ~/.tmux.conf
- set -g mouse on
- setw -g mode-keys vi
- copy-paste:
- to copy - `ctrl+b` +[ (highlight with the mouse the text that you want to copy)
- ``` comment for the above command-- The following action is a full keyboard action and does not require a mouse.
- You can go to a certain line and press space, and move with the arrows right or left to highlight the text that you want to copy
- ```
- to paste - `ctrl+b +]
- more info here:
- https://opensource.com/article/20/7/tmux-cheat-sheet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement