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 &
Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!



{ 0 comments… add one now }