This is focused on getting a beginner quickly started with a shared tmux session.
Start a new session by running tmux alone.
Or a shared session.
$ tmux -S /tmp/shared.tmux
Attach to your default session.
$ tmux attach
Or attach to your shared session.
$ tmux -S /tmp/shared.tmux attach
Name your session.
$ tmux -S tmp/shared.tmux new-session -s mysession
Attach to named session.
$ tmux -S /tmp/shared.tmux attach -t mysession
$ tmux list-session
Make the session file you specified with -S readable by a group. (Create the group first and add your users into it)
$ chgrp tmux /tmp/shared.tmux
Every command is prefixed by the prefix key which is ctrl-b by default. Shown here are default key bindings but you can also change them.
This is probably the first thing you'll want to do.
The windows are shown at the bottom numbered 0 to 9.
The window might be split into panes, horizontally or vertically.
To execute tmux commands you hit Prefix+: (colon) which starts the command prompt at the bottom of tmux, in the status bar.
To close a window simply exit whatever is running in it, shell or program.
But you can also force a window closed.
That's it for the crash course but here are some tips from my own config.
The default prefix key is awkwardly placed imo so I use Ctrl-f.
Put this into your
# Change prefix key to Ctrl-f set-option -g prefix C-f # Set window numbering starting at 1 instead of 0 set-option -g base-index 1 # Make active window more visible set-window-option -g window-status-current-bg red # Terminal history set -g history-limit 9001