Nohup Resume Command Exit After Exit

nohup is a command used to ignore HUP signal. HUP signal is used to kill a shell command if the parent shell exits. Think that we logged in with ssh and run a command. But the command execution takes a lot of time. We need to log out. In normal sense if we log out our command execution will end. In this case we will provide nohup command to prevent command termination even the ssh logout.

Syntax

1

2

nohup COMMAND[ARG]...

nohup OPTION

Usage

Nohup is very easy command to use in previous syntax section as wee see. We will just provide command after nohup command we want to execute.

1

$nohup top&

We have appended ampersand to make run our process in the background and not bind to the current terminal.