When I use nohup I see it automatically "ignoring input and appending output to nohup.out". & is used to tell OS to run the program in background. Then why doesn't nohup imply &?
Asked
Active
Viewed 120 times
0
Michael Ma
- 103
1 Answers
1
Because the shell does not know or care what nohup is. It just knows you said to run X, and wait for it to finish, so that is what it does.
psusi
- 17,303
&is for shell andnohupis not? – Michael Ma Mar 22 '17 at 04:05nohupis a program, and the & is a signal to the shell. – psusi Mar 28 '17 at 23:33