Processes · Question 12 of 12

A job runs in the background with & but without nohup. How do you afterwards prevent it from receiving SIGHUP when the terminal is closed?

1 answer is correct. Hard Created with AI

Show answer

Answer

  • A disown %1

Explanation

disown removes the job from Bash's job table, so Bash no longer sends it SIGHUP on exit. nohup only works at start.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications