Attach to last session
sessions
// what it does
With no `-t` target, `attach-session` reconnects you to the most recently used session on the server. `a`, `at`, `attach`, and `attach-session` are all the same command — `a`/`at` are just abbreviations. This is the fastest way back in when you only have one session or want the last one you touched.
// shell
$ tmux a$ tmux at$ tmux attach$ tmux attach-session// gotcha
If the server has no sessions it fails with `no sessions`; you need `tmux new` (or `new-session -A`) to create one first. It also refuses to run from inside an existing tmux client unless you unset `$TMUX`.