terminal.cab

All commands

nohup

Topic: Processes

Program: nohup

Starts a command that keeps running when the terminal closes.

Package: proc

Usage

nohup COMMAND [ARG]...

Description

Start COMMAND so that it keeps running when the terminal hangs up (SIGHUP is ignored). Output that would go to the terminal goes to nohup.out instead, input from the terminal is cut off.

Options in the simulator

1 more options of the real program, not in the simulator yet
  • --version not in the simulator yet

    Explanation to come

Examples

From the lesson Foreground, background, staying on
nohup sleep 300 &
[1] 4243
nohup: ignoring input and appending output to 'nohup.out'
jobs
[1]+  Running                 nohup sleep 300 &
ls -l nohup.out
-rw------- 1 lerner lerner 0 Oct 17 09:42 nohup.out

Try it in the terminal

Where you learn it

Lessons

All commands