Created
October 6, 2017 18:09
-
-
Save Weiming-Hu/639ea6946ceef9546c5e1308a7e6aa8a to your computer and use it in GitHub Desktop.
Some useful notes for Tmux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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