2025-03-14 21:59:59 -06:00
|
|
|
# disown
|
|
|
|
|
|
|
|
|
|
> Allow sub-processes to live beyond the shell that they are attached to.
|
2025-07-24 22:27:13 -06:00
|
|
|
> See also: `jobs` for finding job numbers.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-disown>.
|
|
|
|
|
|
|
|
|
|
- Disown the current job:
|
|
|
|
|
|
|
|
|
|
`disown`
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
- Disown a specific job (run `jobs` to find the job number):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`disown %{{job_number}}`
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
- Disown all jobs (Bash only):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`disown -a`
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
- Keep job (do not disown it), but mark it so that no future SIGHUP is received on shell exit (Bash only):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`disown -h %{{job_number}}`
|