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 &?


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.

| improve this answer | |
  • So & is for shell and nohup is not? – Michael Ma Mar 22 '17 at 4:05
  • @MichaelMa, yes; nohup is a program, and the & is a signal to the shell. – psusi Mar 28 '17 at 23:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.