Move an already running process to screen
Ilhan Ates / February 04, 2023
1 min read • ––– views
You've realized some command you ran on your remote server is taking long, and want to move it to a Screen session. Tough situation, easy solution!
- Use top or htop to grab the PID of the process.
- Open screen in another ssh session / terminal tab.
- Use reptyr (
reptyr PID
) to attach it back!