Tmux – How to list sessions and attach/detach to/from session

Spread the love

In some new Linux based distributions (such as Oracle Linux, RedHat Linux and etc) screen tool was replaced on tmux that very similar but have different commands for control.

For list all sessions run tmux list-sessions

For attach to created session run tmux attach -t session_id where session_id – id for session from results tmux list-sessions

For detach from existing session press Ctrl+b together, then release them and press d

Leave a Reply