Move an already running process to screen
Ilhan Ates

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!

  1. Use top or htop to grab the PID of the process.
  2. Open screen in another ssh session / terminal tab.
  3. Use reptyr (reptyr PID) to attach it back!