Process Control Flashcards

Section 6 (24 cards)

1
Q

What is the primary objective of the Practice Lab 6 - Working with Processes challenge?

A

To interact directly with the Linux Kernel’s process manager.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which command is used to identify system resouce usage in real-time?

A

The top command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which command is used to locate specific Process ID’s (PIDs) from a static list?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command is used to forcefully stop a rogue process in Linux?

A

The kill command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In the lab simulation. What command is used to create a harmless background process?

A

The sleep command
example sleep 6000 &

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the function of the ampersand (&) when appended to the linux command like sleep 6000 &

A

It tells Linux to run the command in the background returning control of the terminal immediately.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The command top provides a dynamic, __ snapshot of system health.

A

real-time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What key do you press to quit the top commands dashboard?

A

The q key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which command provides a single static snapshot of current processess?

A

The ps command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In the command ps aux. What does the a flag stand for?

A

All processes (including those of other users)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In the command ps aux. What does the u flag specify?

A

A user-oriented format that shows the process owner

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

In the command ps aux what does the x flag include in the output?

A

Process not attached to a terminal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the complete command used in the lab to find specific sleep process from the full process list?

A

ps aux | grep sleep

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

In the output of the ps aux
Which column contains the process id (PID)?

A

The second column

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What piece of information is required by the kill command to terminate a specific process?

A

The process id (PID) of the target process.
example: kill <PID>
kill 1234</PID>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Provide the syntax for using the kill command to stop a process with PID 1234

17
Q

What is the primary warning associated with using the kill command?

A

Killing the wrong system process can crash your session

18
Q

After using the kill command
What is the next step to confirm the process has been terminated?

A

Run the search command again.
example: ps aux | grep sleep
to verify the process no longer appears.

19
Q

If you see a root process using high CPU in top
What command should you use to investigate its function?

A

The man command
example: man top

20
Q

Step P6.1 in the lab involves veiwing a dynamic, real-time snapshot of processes using the __ command.

21
Q

Step P6.3 of the lab uses ps aux | grep sleep
for what purpose?

A

To filter the process list and locate the target sleep process and its PID.

22
Q

What is the expected system output after successfully using the
kill <PID>
command?</PID>

A

A message like terminated

23
Q

The lab completion confirms mastery of filesystem navigation, file management, permissions, searching, and __

A

process control

24
Q

GREAT JOB!