PS Flashcards
When the ps command is run without any arguments, which processes will it display?
The processes that belong to the current user and are associated with the same terminal in which the command is run.
What is a PID?
The process ID
What is the TTY?
The controlling terminal for a process.
What is the TIME category?
The cumulative CPU time the process has used since the process started.
What is CMD?
The name of the command that is running.
What flag can you append to ps that shows common useful information?
u (with no dash)
so: ps u
What does the %MEM column tell us?
The percentage of real memory used by a process.
What does the VSZ column tell us?
Indicates, as a decimal integer, the size in kilobytes of the process in virtual memory.
What does the RSS column tell us?
The real-memory size of the process (in 1 KB units).
What flag can we use to display all running processes?
-e
What flag can we use to see all the processes and with more detail than -e?
ps ax
How can you filter results by user?
with the -U flag
ps -U root
We can easily customize ps to display a host of different column information using the ___ and ___ flags.
- L
- O
To get a list of the available columns that can be displayed with ps we can use the ____ flag.
-L
How can you pass column names you want to see to the ps command?
By prefixing them with the -O flag:
ps -O etime,%cpu,%mem…