tldr/pages/linux/disown.md

22 lines
449 B
Markdown
Raw Normal View History

2018-07-17 20:29:16 +01:00
# disown
> Allow sub-processes to live beyond the shell that they are attached to.
> See also the `jobs` command.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-disown>.
2018-07-17 20:29:16 +01:00
- Disown the current job:
`disown`
- Disown a specific job:
`disown %{{job_number}}`
- Disown all jobs:
`disown -a`
2019-05-14 18:17:37 +01:00
- Keep job (do not disown it), but mark it so that no future SIGHUP is received on shell exit:
`disown -h %{{job_number}}`