Skip to content

Instantly share code, notes, and snippets.

@t18n
Last active November 9, 2020 13:11
Show Gist options
  • Save t18n/5f861ff8e012496bb5b6780da18c7897 to your computer and use it in GitHub Desktop.
Save t18n/5f861ff8e012496bb5b6780da18c7897 to your computer and use it in GitHub Desktop.
[Tmux Basic Cheatsheet] Basic commands to use in Tmux #tmux #shell #tool

‎# Tmux Basic Cheatsheet

Bash Session

These commands are to use in Bash, not inside a tmux session

  • Show all sessions: tmux ls
  • Attach to session: tmux attach -t <session-name>
  • Create new session: tmux new -s <session-name>
  • Kill session: tmux kill-session -a -t <session-name>

Session

  • Show session list: [prefix] s
  • Rename: [prefix] $
  • Save session: [prefix] ctrl+s
  • Change session name: Attach first -> [prefix] $

Windows

  • Change a window name: [prefix] ,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment