HOTPICKS
Reptyr
TERMINAL RE-PARENT TOOL
Version: 0.8 Web: https://github.com/ nelhage/reptyr
This is an amazing Linux trick that enables you to steal a process’s terminal output and reconnect it to another terminal session. Reptyr can perform ‘re-pty-ing’ of any process in Linux and thus makes it possible to detach a process from one PTY/TTY terminal session and attach it to another. The idea makes use of the ‘leading terminal’ concept, which is key to Linux. As such, every process in a session has the same controlling terminal, and each terminal belongs to at most one session. If a terminal fails, its child process is killed too, which is best avoided.