..
How_to_use_tmux
How To Use Tmux
Create
Create a new session:
$ tmux new -s session_name
Close
Close a session internally:Ctrl+D or
$ tmux new -s session_name
...
$ exit
[exited]
Temporarily exit but do not close the session:Ctrl+B then D/d
Query
Show all current sessions:
$ tmux ls
model: 1 windows (created Mon Nov 24 17:52:42 2025)
test: 1 windows (created Mon Nov 24 19:56:03 2025)
Reconnect
Reconnect to session:
$ tmux attach -t session_name