4 ms·
This part at the end is something I use a lot to re-attach to a running session: > to re-attach to the second session you’ll need to do tmux -L other attach -t
by kagevf 4y ago
This part at the end is something I use a lot to re-attach to a running session:
> to re-attach to the second session you’ll need to do tmux -L other attach -t second.
I have tmux running on a machine in my closet that I ssh to from a couple of different laptops. I name each session, and then always connect to the same session when I ssh into the closet machine.
tmux a -d -t session-name
The -d makes the sessions resize to match the current scrren size which is useful for me because I use different screen resolutions on both laptops.
- Jtsummers 4y ago-d causes the other attached clients to become detached from the session. tmux, like screen, limits the size of the rendered window to the smallest presently connected. It happens that it forces a resize to match your current screen size, but that's not its primary purpose.
- kagevf 4y agoAh, OK ... I couldn't get much from the man page, but I recalled that I needed that to get the resize - thank you for the explanation!
- ttyprintk 4y agonew-session -A will automatically create that session upon reboot.