Analyzing Processes, Memory and CPU Flashcards
How to display all the running processes on the system?
ps -a
How to display the processes running in the current shell?
ps
How to run ps
for a specific user?
ps -u {username}
What is the TIME
value from the ps -axjf
command?
cumulative CPU time the process has used
What is the COMMAND
value from the ps -axjf
command?
the command used to start the process
What is the UID (User ID)
value from the ps -axjf
command?
numeric user ID of the process owner
What is the C (CPU Usage)
value from the ps -axjf
command?
scheduler priority of the task
What is the TT (Terminal)
value from the ps -axjf
command?
terminal associated with the process
What does ??
indicate for TT (Terminal)
processes are not attached to any terminal (they’re system or daemon processes)
What is the meaning of the x
parameter for the ps
command?
- 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
What is the meaning of the j
parameter for the ps
command?
- 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