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.
Run jobs in the foreground and background - Linux Tutorial
From the course: LPIC-1 Exam 101 (Version 5.0) Cert Prep
Run jobs in the foreground and background
- [Instructor] When we start programs from the shell, they usually stay as interactive tasks in the foreground. This way we see the output on the screen and we can terminate them quickly by pressing control C. However there are times when putting a current task in the background would be advantageous. Whenever we want to check up on the task we could bring it to the foreground again. We can do this with a couple of commands. To set this up let's open two terminals. Go to applications, favorites, terminal, and drag this terminal to the right border. Bump the font size, and then open another terminal, applications, favorites, terminal. Drag this terminal to the left border and bump it's font size as well. We will use the PS command to keep an eye on any DD commands running. Normally we'd run top for real time tasks, but we're going to combine PS with a watch command. Watch executes a command every two seconds until…
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)
-
-
-
-
-