Start a new session
sessions
// what it does
Bare `tmux` starts the tmux server if it isn't already running, creates a new unnamed session (numbered 0, 1, 2...), and attaches your terminal to it. `tmux new` and `tmux new-session` are exact aliases — `new` is just the short form of the `new-session` command. This is the zero-argument way to get into tmux when you don't care about naming the session.
// shell
$ tmux$ tmux new$ tmux new-session// tmux command
: new// gotcha
Running it from inside an existing tmux session throws `sessions should be nested with care, unset $TMUX to force` — tmux refuses to nest by default because the outer prefix key would swallow keystrokes meant for the inner one.