Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to copy server-a.com/file.zip to server-b.com. Let's assume the file is really big.

Using my home PC, I SSH to server-b.com and type wget server-a.com/file.zip

How do you do it so that the download will continue even if I close my SSH terminal and PC? Note: I close my PC because the download will take several hours.

share|improve this question
    
Ah, I misunderstood the question. I'll delete my answer –  ChrisF Oct 21 '12 at 10:05
add comment

1 Answer 1

up vote 2 down vote accepted

I would use GNU Screen for this. You can read more about what it is on its website (http://www.gnu.org/software/screen/) - but one of the things I love about it is that you can detach it and leave your shell running merrily without interference.

Then, later, you can log back in and pass Screen -r And get right back to where you were.

Screen also has a lot of other beneficial features, and it's a program I'd recommend anyone using the terminal a lot should use.

share|improve this answer
    
That works thanks –  IMB Oct 21 '12 at 12:50
    
Good, I'm glad. Keep it in your *NIX toolbox for next time - it's a real productivity booster. –  Xyon Oct 21 '12 at 18:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.