Thursday, May 2, 2024
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 1747  / 2 Years ago, sun, april 17, 2022, 9:13:04

I use firefox & as command in terminal. This must dissociate firefox from terminal. Still when I close terminal, firefox exits. Any ideas, why this happens? How can I overcome this situation?


More From » command-line

 Answers
4

You can exit the terminal by pressing Ctrl+D; this will break the parent-child chain, so that the terminal is no longer the parent.



Using the ampersand only places the process in the background; it doesn't disassociate the parent from the child, so when the parent process exits, so do its children.


[#36257] Monday, April 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ipentainer

Total Points: 112
Total Questions: 113
Total Answers: 113

Location: Guernsey
Member since Tue, Jul 6, 2021
3 Years ago
;