March 2025
Intermediate to advanced
118 pages
3h 2m
English
You’ve already used the tmux command to create new sessions, but the tmux command takes many other options. You can use this command to target an existing session and split its windows into panes, change layouts, or even start up applications within the session.
The key to making this work is the -t switch, or the “target.” When you have a named tmux session, you can attach to it like this:
| | $ tmux attach -t [session_name] |
You use this target switch to direct a tmux command to the appropriate tmux session. Try it out.
Create a new tmux session called development, using the -s flag to specify the session name:
| | $ tmux new-session -s development |
Then, detach from ...
Read now
Unlock full access