Linux: Stop Programs Quitting When the Terminal Is Closed

by Vivek Gite on March 13, 2008 · 0 comments

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 &

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 9 + 14 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: