Using the tmux command
kill-server one can immediately shut down the tmux server and close all open tmux windows.
How does this affect the processes still running inside the various tmux windows? Will they shut down gracefully or just be forced to quit, leaving open filelocks etc.?
To use the command put the following line in your
bind k confirm kill-server