Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 4975  / 3 Years ago, mon, november 1, 2021, 11:04:40

So I am well aware of nohup and suffixing commands with & to ensure that they go into the background.



However if I run a graphical application - sometimes using neither seems to do the job. So what can I prefix a program/command with to ensure that it keeps running after the terminal is closed?


More From » gnome

 Answers
5

If you want the application to keep running when you close the terminal window you should do:



nohup chromium-browser &


You need both the nohup and the &.




  • nohup means keep this process/command running after the shell closes.

  • & means put this process/command in the background so it dose not block the shell (so you can use it for something else.


[#40845] Wednesday, November 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gerrin

Total Points: 347
Total Questions: 109
Total Answers: 121

Location: Tanzania
Member since Fri, Oct 29, 2021
3 Years ago
;