Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

For example, I ssh into a server and run a command say ... wget, then I close the terminial window. Do my download continue? Or does it depend on the app? If so how do I know?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

It depends.

If you're closing a SSH session, you're logged out and all active programs are killed. This might become problematic if you've frequent connection drops and therefore it's recommended to use the screen program in a SSH session if you do not want to loose your session on exit.

Most programs are gone after a closed SSH connection if they're run on the command line, e.g. nano or apt-get. do-release-upgrade also uses screen and won't be interrupted by a connection drop.

share|improve this answer

You can also use nohup if screen isn't available. Check the wikipedia entry on it at http://en.wikipedia.org/wiki/Nohup and you'll find a couple of examples.

share|improve this answer

Your Answer


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.