Linux: Stop Programs Quitting When the Terminal Is Closed

by on March 13, 2008 · 0 comments· LAST UPDATED October 22, 2008

in , ,

Q. When I start a program from the terminal, it closes when I close the terminal windows? How do I stop program quitting when the terminal is closed?

A. You need to use nohup utility, which allows to run command./process or shell script that can continue running in the background after you log out from a shell:
nohup program &
nohup gedit file.c &

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 0 comments… add one now }

Leave a Comment

Tagged as: , , , , ,

Previous Faq:

Next Faq: