Tmux
Motivation
At cases, we need to run a long session via SSH for heavy tasks, but the connection is not always stable and might be disconnected. If so, we are going to lose the access to these remote sessions. tmux
can help you reconnect to a disconnected remote terminal (if you run these tasks under tmux
from the very beginning).
Installation
Usage
tmux
Outside of a session
Inside of a session
To set up mouse scrolling, add the following line to ~/.tmux.conf
:
Note that this setting breaks highlighting and copying text. Use shift+click to maintain this functionality.
tmuxp
Reference
tmux
source code: https://github.com/tmux/tmuxtmuxp
source code: https://github.com/tmux-python/tmuxpTmux Cheat Sheet: https://tmuxcheatsheet.com/
Last updated