Tmux detach

Today I learned a very helpful tmux switch.

If, for any reason, you want to detach all other clients from a running session one can use the -d switch on the command line:

1
2
3
4
5
$ tmux ls
sys: 1 windows (created Fri Mar 24 13:43:08 2023)
blogging: 2 windows (created Sun Mar 26 10:04:53 2023) (attached)

$ tmux a -t blogging -d