Skip to content

Instantly share code, notes, and snippets.

@Weiming-Hu
Created October 6, 2017 18:09
Show Gist options
  • Save Weiming-Hu/639ea6946ceef9546c5e1308a7e6aa8a to your computer and use it in GitHub Desktop.
Save Weiming-Hu/639ea6946ceef9546c5e1308a7e6aa8a to your computer and use it in GitHub Desktop.
Some useful notes for Tmux
# Tmux
### From the termianl
start tmux session with name
```
tmux new -s [name]
```
attach to a existed tmux session by name
```
tmux a -t [name]
```
list all alive tmux sessions
```
tmux ls
```
kill the session by name:
```
tmux kill-session -t [name]
```
### Within Tmux
Within a tmux seesion, press the combined key `Ctrl + b` and then press the following
- `d`: detach this session and go back to the terminal;
- `"`: split vertically
- `%`: split horizontally
- `left`, `right`, `up`, or `down`: switching between panes
- `x`: kill the current pane
- `q`: display pane numbers for a short while
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment