Last active
December 6, 2019 14:35
-
-
Save jeromecovington/025eb114ef1ec833615d1903c967b621 to your computer and use it in GitHub Desktop.
tmux in brief
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 new-session -s my_session | |
tmux ls | |
tmux attach-session -t my_session | |
Ctrl+b c | |
Create a new window (with shell) | |
Ctrl+b w | |
Choose window from a list | |
Ctrl+b 0 | |
Switch to window 0 (by number) | |
Ctrl+b , | |
Rename the current window | |
Ctrl+b % | |
Split current pane horizontally into two panes | |
Ctrl+b " | |
Split current pane vertically into two panes | |
Ctrl+b o | |
Go to the next pane | |
Ctrl+b ; | |
Toggle between the current and previous pane | |
Ctrl+b [ | |
Enter copy mode (navigate with arrows) | |
Ctrl+space | |
Highlight text in copy mode | |
Ctrl+w | |
Copy to buffer | |
Ctrl+b ] | |
Paste into any tmux pane | |
Ctrl+b x | |
Close the current pane | |
Ctrl+b d | |
Detach session | |
tmux rename-session -t my_session other_session | |
tmux kill-session -t my_session |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment