4

Is there a tmux equivalent of "screen -D -R"

view full story
linux-howto

http://unix.stackexchange.com – I would like to know if there is a way to get tmux to behave like screen -D -R so I could say, have the command as a default command in Putty. These screen switches would force detach of an existing screen session for my user (even if it was still active and logged-in somewhere else) and reattach it to the current session. Also, in the case that no screen session existed, it would create a new one. I like tmux and can see clear benefits over screen, but the existence of this feature would really seal the deal. tmux attach doesn't seem to create a new session if there isn't one. The man pag (HowTos)