From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Signal a program to continue running after logout

Signal a program to continue running after logout - Linux Tutorial

From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep

Start my 1-month free trial

Signal a program to continue running after logout

- [Instructor] Often we have jobs that take longer than we want to be logged in for. For instance, if we're working on a project that will take 10 hours, and we're only at work for eight hours, we have a problem. We don't want to walk away from our workstations still logged in as other people could use our account. The easy way to disconnect the running process from our terminal session is to use the nohup command. Whenever we want to run a command independently of our session, we just proceed the command with nohup. For instance, if we wanted to ping a host, we'll use our own IP address for this example because we know it exists. We'll also end our line with the ampersand and run it asynchronously. In a terminal type of nohup space ping space localhost space ampersand and hit Enter. We're only using ping as an example of a long running process. It might not look like it's doing anything but the output is going into the…

Contents