Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.5 KB

Learn basic job control commands readme.md

File metadata and controls

25 lines (16 loc) · 1.5 KB

#Learn basic job control commands

Pause a Running Process and Put It in the Background

In the image below we ran the command top I then ran the command ctrl z as you can see the terminal printed out that the process was stopped. image

List All Background Jobs

In the image below we ran the command top. This will list all jobs that you've started and suspended.

image

Bring a Background Job to the Foreground

In the image below, I ran the command fg %1 to bring the process to the foreground.

image

Move a Foreground Job to the Background

In the image below, you see while the process was running we ran the command ctrl z to pause the process and we then ran the command bg to have the process run in the background.

image

Terminate a Specific Job

In the image below, I use the kill %2 command to terminate the job that I no longer want to run.

image