Ubuntu – How to keep a command I started from the shell running if I logout from the shell

command line

Which methods exist to keep a command that was started from shell on running after logging out from from shell?

Best Answer

  • To put the application into the background, use &:

    command &
    
  • If you wish to close the terminal, and keep the application running, you can use several options: screen Install screen, dtach Install dtach and nohup.

    nohup command &
    
  • Screen is helpful as you can re-start a session and dtach is fun as well.

  • Look at the following links for more informations

Related Question