| Command Line Options | screen | tmux |
|---|---|---|
| Create detached session 'foo' | $ screen -S foo -d -m |
$ tmux new -s foo -d |
| List sessions | $ screen -list |
$ tmux ls |
| Attach | $ screen -r |
$ tmux attach |
| Attach to session 'foo' | $ screen -r foo |
$ tmux attach -t foo |
| Quit a session | $ screen -X -S <name> quit |
$ tmux kill-session -t <name> |
| Detach session | Ctrl-A D |
Ctrl-B D |