• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

nohup Command Options in Linux

by admin

Each process has a parent process that started it. For example, if you execute a command in a bash shell, then that command’s parent process is the bash shell process.

When a parent process is stopped, a hang-up (HUP) signal is sent to all the child processes. This HUP signal is designed to stop the child processes. By default, a child process will stop when sent a HUP signal.

To avoid this, execute the child process with the nohup command:

$ nohup some_command

This technique is typically used when you remotely log in to a system and want to have some command continue to run even if you are disconnected. When you are disconnected, all of the programs you have running are sent HUP signals. Using the nohup command allows this specific process to continue running.

nohup Command Options

nohup command only has 2 options as shown below:

Option Description
–help display this help and exit
–version output version information and exit

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL : How to disable root login or root access on a system
  2. jarsigner: command not found
  3. pstree Command Examples in Linux
  4. betterlockscreen Command Examples in Linux
  5. How to make a LED flash with the Raspberry Pi
  6. e2image: command not found
  7. How to start/stop Virtual Machines in RedHat Virtualization
  8. How to Reinstall Corrupted Library with yum
  9. updatedb: command not found
  10. How to configure iSCSI Initiator (client) in CentOS / RHEL 7

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright