tmux

Sessions

Start session

  • tmux new
  • tmux new -s mysession

Show sessions

  • tmux ls

Kill sessions

  • tmux kill-session  -t mysession
  • tmux kill-session -a  ;kill all sessions but last session

Attach sessions

  • tmux a
  • tmux a -t #
  • tmux a -t mysession

Other

  • Detach from session: [Ctrl - b] + d
  • Rename session: [Ctrl - b] + $
  • Move to previous session: [Ctrl - b] + (
  • Move to next session: [Ctrl - b] + )
Copy Mode
  • Enter copy mode: [Ctrl - b] + [
  • Exit copy mode: q
Learn