Created
April 29, 2019 06:09
-
-
Save gnthibault/3e4098160aae79eaa6c629bbca637049 to your computer and use it in GitHub Desktop.
Tmux cheatsheet
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
# create sessionL | |
tmux new -s thibault1 | |
# list session | |
tmux ls | |
#Attach to session | |
tmux attach -t thibault1 | |
# Quit session | |
Ctrl+b then d | |
# alias for auto ssh to server and attach to session with id passed as first parameter | |
server-tmux() { | |
ssh -tX user@server "tmux attach -t thibault$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment