Skip to content

Linux disown Guide

Mattscreative edited this page Dec 5, 2025 · 2 revisions

Linux disown Guide

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.


Table of Contents

  1. Understanding disown
  2. disown Basics
  3. Disowning Jobs
  4. Process Detachment
  5. Troubleshooting

Understanding disown

What is disown?

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

disown Basics

Disown Job

Basic usage:

# Disown most recent job
disown

# Removes from job table

Specific Job

Job number:

# Disown specific job
disown %1

# Or
disown 1

# %1 = job number 1

Disowning Jobs

All Jobs

Disown all:

# Disown all jobs
disown -a

# -a = all jobs

Running Jobs

Disown running:

# Disown running jobs
disown -r

# -r = running jobs only

Process Detachment

With nohup

Combined use:

# Start with nohup
nohup command &

# Then disown
disown

# Fully detached

Background and Disown

Complete detachment:

# Start background
command &

# Disown immediately
disown %1

# Process continues after logout

Troubleshooting

Job Not Found

Check jobs:

# List jobs first
jobs

# Verify job number exists

Summary

This guide covered disown usage, job detachment, and process management for Arch Linux, CachyOS, and other distributions.


Next Steps


This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.

Clone this wiki locally