Analyzing Processes, Memory and CPU Flashcards

1
Q

How to display all the running processes on the system?

A

ps -a

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

How to display the processes running in the current shell?

A

ps

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

How to run ps for a specific user?

A

ps -u {username}

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

What is the TIME value from the ps -axjf command?

A

cumulative CPU time the process has used

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

What is the COMMAND value from the ps -axjf command?

A

the command used to start the process

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

What is the UID (User ID) value from the ps -axjf command?

A

numeric user ID of the process owner

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

What is the C (CPU Usage) value from the ps -axjf command?

A

scheduler priority of the task

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

What is the TT (Terminal) value from the ps -axjf command?

A

terminal associated with the process

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

What does ?? indicate for TT (Terminal)

A

processes are not attached to any terminal (they’re system or daemon processes)

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

What is the meaning of the x parameter for the ps command?

A
  • include processes that do not have a controlling terminal
  • often includes daemon processes (services running in the background), which are important in system operation but not tied to a specific user terminal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the meaning of the j parameter for the ps command?

A
  • show additional columns related to job control
  • adds columns for PGID (Process Group ID), SID (Session ID), and other related fields
  • useful for seeing the relationship between processes, like which processes are grouped together
How well did you know this?
1
Not at all
2
3
4
5
Perfectly