top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is nohup in UNIX?

+2 votes
331 views
What is nohup in UNIX?
posted Dec 14, 2015 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Background process are associated with the terminal on which you are executing a command so when you execute a job in the background and logout from the session, your process i.e. terminal will get killed.

nohup is one such method to avoid it and output that would normally go to the terminal goes to a file called nohup.out if it has not already been redirected.

Syntax

$nohup <my-process> &

Note: By default, the standard output will be redirected to nohup.out file in the current directory. And the standard error will be redirected to stdout, thus it will also go to nohup.out.

answer Dec 14, 2015 by Salil Agrawal
...