DEV Community

Ilhan Ates
Ilhan Ates

Posted on • Originally published at ilhan.me

Move an already running process to screen

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!

Top comments (0)