To maintain sessions on remote servers, as recommended by a friend, I started to use tmux.
It’s a really powerful peace of code, the basics are already pretty neat.
Command | Usage |
---|---|
tmux new -s session_name | creates a new tmux session named session_name |
tmux attach -t session_name | attaches to an existing tmux session named session_name |
tmux switch -t session_name | switches to an existing session named session_name |
tmux list-sessions | lists existing tmux sessions |
tmux detach (prefix + d) | detach the currently attached session |
##
References
Excellent blog post: A tmux Crash Course