From the course: Linux: Shells and Processes

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Manage process jobs

Manage process jobs

- [Instructor] When you start programs from the shell, they usually stay as interactive tasks in the foreground. This way, you can see the output on the screen and you can terminate them quickly by pressing Control + C. However, there are times when putting the current task in the background would be advantageous. Whenever you want to check up on the task, you would bring it to the foreground again. You can do this with a couple of commands in Bash. To set this up, let's open two terminals. One of them, we'll drag to the right hand of the screen and we'll open a second terminal and drag it to the left. 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 terminated. By using the watch command, we can run ps often and watch the updates. This keeps the amount of data on…

Contents