nohup Linux Commands
What is Linux nohup Command?
Explanation
nohup COMMAND:Linux has the ability to run a job in background using commands such as &, bg. The job would be killed when the root user logs out.
In order to avoid this, nohup command is used.
SYNTAX :
nohup Command &
OPTIONS:
-a |
Always changes the signal disposition of target processes. |
-F |
Force. Grabs the target processes even if another process has control. |
-p |
Operates on a list of process groups. |
--help |
display this help and exit. |
--version |
output version information and exit. |
EXAMPLE:
-
nohup find -name '*' -size +1000k > log.txt
Output:
In the above example, the command is used to find the files with the size greater than 1000K,
with no hang up, and place it in the log.txt file.