# nohup

*noun*

say it: **“NOH-hup”** **/ˈnoʊhʌp/**

A command that starts a program so it keeps running after you close the terminal it was started from.

## What does **nohup** do?

When you close a terminal, it sends its programs a hang-up signal, and most of them stop. `nohup` ("no hang-up") starts a program that ignores it, so a long job keeps going after you close the window. Send its output to a log file, and add `&` to get your prompt back.

```bash
nohup ./export-video.sh > export.log 2>&1 &
# close the terminal, open a new one:
pgrep -af export-video     # 3534 bash ./export-video.sh
```

## In a sentence

- “Sam started the export with **nohup** and closed the laptop's terminal; it was still running an hour later.”
- “Without **nohup**, the export died when the window closed.”

Level: Journeyman · [More Unix terms at this level](https://www.ask-codey.com/glossary?category=unix&level=3)

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/nohup
