Title: Theory / Unimportant / CS / command line / admin / tmux
Tags: seen_description computer_to_instruction
On every note of this deck, unless a note says otherwise:
Page: https://github.com/tmux/tmux/wiki/Getting-Started

Name: tmux
Page: https://linuxize.com/post/getting-started-with-tmux/
Etymology: terminal multiplexer

Instruction: tmux new
Effect: open a new tmux session
Abbreviation: tmux

Effect: Give name session_name to the new tmux session
Context: tmux new
Abbreviation: -s session_name

Effect: Move to tmux command mode
Context: tmux
Abbreviation: ctrl+b

Effect: dettach from the tmux session and return to shell
Context: tmux command mode
Abbreviation: d

Instruction: ls
Effect: show the list of running tmux sessions
Context: tmux

Effect: Create a new window with shell
Context: tmux command mode
Abbreviation: c

Effect: Choose a window from list
Context: tmux command mode
Abbreviation: w

Effect: Switch to the n-th window
Context: tmux command mode
Abbreviation: n

Effect: Rename the current window
Context: tmux command mode
Abbreviation: ,

Effect: Split horizontally in two
Context: tmux command mode
Abbreviation: %

Effect: Split vertically in two
Context: tmux command mode
Abbreviation: "

Effect: Go to the next pane
Context: tmux command mode
Abbreviation: o

Effect: Toggle between current and previous pane
Context: tmux command mode
Abbreviation: ;

Effect: Cloze the currentp ane
Context: tmux command mode
Abbreviation: x

Instruction: ~/.tmux.conf
Effect: tmux configuration file

Name: Session
Definition: Groups one or more windows together, created with
tmux
or
tmux new
Page: https://github.com/tmux/tmux/wiki/Getting-Started
Context: tmux

Name: A window
Definition: Groups one or more panes together, linked to one or more sessions
Page: https://github.com/tmux/tmux/wiki/Getting-Started
Context: tmux

Name: A pane
Definition: Contains a terminal and running program, appears in one window
Page: https://github.com/tmux/tmux/wiki/Getting-Started
Context: tmux

Name: A client
Definition: Attaches a tmux session from an outside terminal such as xterm(1)
Page: https://github.com/tmux/tmux/wiki/Getting-Started
Context: tmux

Fla: -- foo
Effect: Run command foo in the new created tmux window
Page: https://github.com/tmux/tmux/wiki/Getting-Started
Prefix: tmux new
Flag abbreviation: 'foo'

Instruction: :
Effect: Open a tmux prompt
Context: tmux command

Instruction: attach
Effect: Attach the most recently used tmux session
Context: tmux

Instruction: attach -tfoo
Effect: Attach tmux session foo
Context: tmux

Instruction: attach -dfoo
Effect: Attach tmux session foo and detach it from other places
Context: tmux

Instruction: attach -Afoo
Effect: Attach tmux session foo if it exists, otherwise create it
Context: tmux

Instruction: '
Effect: Query for a window to go to
Context: tmux mode

Instruction: n
Effect: Go to next window
Context: tmux mode

Instruction: p
Effect: Go to previous window
Context: tmux mode

Instruction: l
Effect: Go to last window
Context: tmux mode

Instruction: up down left right
Effect: Go to the pane above below on the left or right
Context: tmux mode

Instruction: q
Effect: Print number of each pane on screen
Context: tmux mode

Instruction: c-o
Effect: Swap next pane and current pane
Context: tmux mode

Name: Tree mode
Definition: Mode showing all sessions/windows/pane
Page: https://github.com/tmux/tmux/wiki/Getting-Started
Context: tmux

Name: omitted
Definition: tree command
Page: https://github.com/tmux/tmux/wiki/Getting-Started
Context: tmux

Name: Paste buffer
Definition: A buffer that contains data copied from a buffer, that can be pasted in another one
Page: https://github.com/tmux/tmux/wiki/Getting-Started
Context: tmux

Instruction: [
Effect: Start copy mode (similar to emacs)
Context: tmux command

Instruction: ]
Effect: Paste more recently selected text
Context: tmux command

Instruction: =
Effect: Opening buffer mode
Context: tmux command