-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux disown Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to disown on Linux, covering Arch Linux, CachyOS, and other distributions including detaching jobs from shell, process disowning, and background process management.
disown removes jobs from shell job table.
Uses:
- Detach jobs: Remove from job control
- Prevent hangup: Jobs survive shell exit
- Background processes: Manage background jobs
- Process management: Control process ownership
Why it matters:
- Job detachment: Detach from shell
- Long processes: Keep processes running
- Terminal independence: Survive logout
Basic usage:
# Disown most recent job
disown
# Removes from job tableJob number:
# Disown specific job
disown %1
# Or
disown 1
# %1 = job number 1Disown all:
# Disown all jobs
disown -a
# -a = all jobsDisown running:
# Disown running jobs
disown -r
# -r = running jobs onlyCombined use:
# Start with nohup
nohup command &
# Then disown
disown
# Fully detachedComplete detachment:
# Start background
command &
# Disown immediately
disown %1
# Process continues after logoutCheck jobs:
# List jobs first
jobs
# Verify job number existsThis guide covered disown usage, job detachment, and process management for Arch Linux, CachyOS, and other distributions.
- nohup Guide - Detached processes
- jobs Guide - List jobs
- Process Management - Process management
-
disown Documentation:
man disown
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.