O'Reilly logo

Fundamentals of Linux by Oliver Pelz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

hang-up

Finally, let's discuss the SIGUP signal, or the hang-up signal. In CentOS 7, if you run a program in the background, like the sleep command, and log out of the system, then log in again, you'll see the command or process still running. So, in CentOS 7, we can easily run background processes and log out of the SSH session, which is useful to run programs that need to run all the time or to do some heavy calculations that take hours, days, or even months. In other Linux distributions, if you log out of the system, the kernel will send the hang-up signal, or in short SIGUP, to all running background processes and terminate them. In such systems, to disable the hang-up signal that is sent to your processes, use nohup; prefix your command ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required