Created
March 6, 2018 14:16
-
-
Save davidnvq/ad1b687227b655aef5c2f4157bb014c0 to your computer and use it in GitHub Desktop.
Multi-session in terminal
This file contains hidden or 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
# Using two packages `tmux` (Ctrl+B) and `screen` (Ctrl+A): | |
#1. Create a new session: | |
#tmux | |
tmux new -s session_name | |
#screen | |
screen -S session_name | |
#2. Attach to the session: | |
#tmux | |
tmux a -t session_name | |
#screen | |
screen -r session_name | |
#3. Deattach a session | |
#tmux | |
(Ctrl + B) D | |
#screen | |
(Ctrl + A) D | |
#4. Terminate a session | |
exit | |
#5. Tmux command | |
# Create a new window inside a session | |
(Ctrl + B) C | |
# List all the windows inside a session | |
(Ctrl + B) W | |
# Rename a window in a session: | |
(Ctrl + B) , | |
# Delete a window in a session: | |
(Ctrl + B) & |
Author
davidnvq
commented
Oct 16, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment