Skip to content

Instantly share code, notes, and snippets.

@gnthibault
Created April 29, 2019 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnthibault/3e4098160aae79eaa6c629bbca637049 to your computer and use it in GitHub Desktop.
Save gnthibault/3e4098160aae79eaa6c629bbca637049 to your computer and use it in GitHub Desktop.
Tmux cheatsheet
# 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