N
Gossip Blast Daily

Can you nohup a running process?

Author

Amelia Brooks

Updated on April 07, 2026

Can you nohup a running process?

In these situations, we can use nohup command line-utility which allows to run command/process or shell script that can continue running in the background after we log out from a shell. nohup is a POSIX command to ignore the HUP (hangup) signal.

What is the use of nohup command in Linux?

The nohup stands for no hang-up, it is a Linux utility that keeps the processes running even after exiting the terminal or shell. It prevents the processes from getting the SIGHUP signals (Signal hang up); these signals are sent to the process to terminate or end a process.

How do I run a nohup background process?

To run a nohup command in the background, add an & (ampersand) to the end of the command. If the standard error is displayed on the terminal and if the standard output is neither displayed on the terminal, nor sent to the output file specified by the user (the default output file is nohup. out), both the ./nohup.

Why is nohup not working?

Re: nohup is not working The shell might be running with job control disabled. When you use nohup, is it really executing /usr/bin/nohup or something else (maybe a shell internal command or an alias)? “which nohup” or “whence nohup” might be useful to confirm you’re using the real nohup command.

What is nohup out file in Linux?

nohup is a POSIX command which means “no hang up”. Its purpose is to execute a command such that it ignores the HUP (hangup) signal and therefore does not stop when the user logs out. Output that would normally go to the terminal goes to a file called nohup.

Why do we need nohup?

When running large data imports on a remote host, for example, you might want to use nohup to ensure that getting disconnected won’t have you start over when you reconnect. It’s also used when a developer doesn’t properly daemonize a service, so you have to use nohup to ensure it isn’t killed when you log out.

How do I run nohup in Unix?

nohup command examples Type exit or press CTRL + D exit from remote server. As you can see nohup keep processes running after you exit from a shell. Read man page of nohup(1) and nice(1) for more information. Please note that nohup is almost available on Solaris/BSD/Linux/UNIX variants.

How do I run a query in nohup mode?

Sqlplus run in background with nohup

  1. First, create a text file containing your query.
  2. To run the query, ssh into your server, nohup sqlplus username/[email protected] @nameOfTheQuery.sql &
  3. From the OS command prompt, issue: # nohup sqlplus / @