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 - Linux Tutorial
From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Select and sort processes for display7m 29s
-
Monitor active processes4m 33s
-
(Locked)
Send signals to processes6m 29s
-
(Locked)
Run a program with higher or lower priority than the default3m 13s
-
(Locked)
Run jobs in the foreground and background4m 18s
-
(Locked)
Signal a program to continue running after logout2m 1s
-
(Locked)
-
-
-
-
-