Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my machine I have installed Ubuntu 12.04 and I have installed putty. I want to start putty from command line. When I run the program from command line and after closing the terminal, putty also gets terminated. How to avoid that ?

share|improve this question

migrated from Oct 9 '12 at 10:06

This question came from our site for system and network administrators.

Try to add an "&" behind your command. So putty& will be your command, this will tell the terminal to run it in background. Next you have to type "disown" to detach the process from the terminal.


share|improve this answer

Prepend the command with nohoup:

nohup putty &
share|improve this answer
I thing appending & is quite enough. nohup detaches the process from the user so it still runs when the user logs out. right? – amyassin Sep 29 '12 at 10:02
No nohup prevents its child process from receiving incoming HUP signals. This will let putty keep running after the "command line" the OP mentioned, is closed. – Thor Sep 29 '12 at 10:09

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.