What is the primary objective of the Practice Lab 6 - Working with Processes challenge?
To interact directly with the Linux Kernel’s process manager.
Which command is used to identify system resouce usage in real-time?
The top command
Which command is used to locate specific Process ID’s (PIDs) from a static list?
The ps command
example: ps aux
ps: command view process status
a: displays processes for all users on the system
u: user oriented output
x: includes processes that do not have controlling terminal.
What command is used to forcefully stop a rogue process in Linux?
The kill command
In the lab simulation. What command is used to create a harmless background process?
The sleep command
example sleep 6000 &
What is the function of the ampersand (&) when appended to the linux command like sleep 6000 &
It tells Linux to run the command in the background returning control of the terminal immediately.
The command top provides a dynamic, __ snapshot of system health.
real-time
What key do you press to quit the top commands dashboard?
The q key
Which command provides a single static snapshot of current processess?
The ps command
In the command ps aux. What does the a flag stand for?
All processes (including those of other users)
In the command ps aux. What does the u flag specify?
A user-oriented format that shows the process owner
In the command ps aux what does the x flag include in the output?
Process not attached to a terminal
What is the complete command used in the lab to find specific sleep process from the full process list?
ps aux | grep sleep
In the output of the ps aux
Which column contains the process id (PID)?
The second column
What piece of information is required by the kill command to terminate a specific process?
The process id (PID) of the target process.
example: kill <PID>
kill 1234</PID>
Provide the syntax for using the kill command to stop a process with PID 1234
kill 1234
What is the primary warning associated with using the kill command?
Killing the wrong system process can crash your session
After using the kill command
What is the next step to confirm the process has been terminated?
Run the search command again.
example: ps aux | grep sleep
to verify the process no longer appears.
If you see a root process using high CPU in top
What command should you use to investigate its function?
The man command
example: man top
Step P6.1 in the lab involves veiwing a dynamic, real-time snapshot of processes using the __ command.
top
Step P6.3 of the lab uses ps aux | grep sleep
for what purpose?
To filter the process list and locate the target sleep process and its PID.
What is the expected system output after successfully using the
kill <PID>
command?</PID>
A message like terminated
The lab completion confirms mastery of filesystem navigation, file management, permissions, searching, and __
process control
GREAT JOB!