Skip to main content

tmux

From the tmux wiki:

tmux is a terminal multiplexer. It lets you switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal

GQC uses tmux to ensure processes running in Linux, such as long jobs on MSI Server, don't end when the user's terminal connection closes. Without the use of tmux, this closure might occur when the user's computer is shut down, crashes, or goes to sleep or if the user closes their terminal window.

Cheat Sheet

info

When using tmux key commands, make sure you are holding ctrl for the first key but release it for the second key. For example, to detach a window you would press ctrl+b then d (note that d should be pressed alone, without ctrl).

Full tmux Cheat Sheet & Quick Reference

  • Create a new session with tmux
  • List sessions with tmux ls
  • Attach to the most recent session with tmux a
  • Start a new named session or attach to an existing named session with tmux new -s named_session
  • Attach to a named session with tmux a -t named_session
  • Detach from the current session by pressing ctrl+b followed by d

Scrolling in tmux:

To enable scroll mode in tmux, press Ctrl-b followed by [ . To exit out of scroll mode, press the q key.