From the course: Linux CentOS 7: Shells and Processes

Unlock the full course today

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

Manage process jobs

Manage process jobs - Linux Tutorial

From the course: Linux CentOS 7: Shells and Processes

Start my 1-month free trial

Manage process jobs

- [Narrator] 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 a 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 its font size as well. We will use the ps command to keep an eye on nadd commands running. Normally we'd run top for realtime tasks, but we're going to combine ps with a watch command. Watch executes a command every two seconds until terminated. By using the watch command, we can run ps often and watch the…

Contents