Skip to content

Linux Run SCP command in background

Linux Run SCP command in background

Here is how you can keep the SCP command running even after closing the remote shell (e.g Putty) Keep Process In Background
  1. Open ssh terminal to remote server.
  2. Type your scp command as normal
  3. Background the scp process by entering Ctrl+Z, then typing the command bg
  4. Disown the background process by typing disown
  5. Close the SSH session and you will see that it is still running
Verify Process Is Running You can verify that it is running by checking the remote destination size. For example, using the command du -s <directory> to check a directory size, or ls -l <filename> to check a file size
Enjoyed the content ? Share it with your friends !
Published inWeb Server

Be First to Comment

Leave a Reply

Your email address will not be published.