ps Interview Questions and Answers¶
Introduction¶
These questions test whether you understand what ps does, when to use it, and how to verify the result on Linux.
Beginner Questions¶
What does ps do?
It shows a snapshot of running processes.
Show a basic command.
ps
Intermediate Questions¶
Name useful options.
aux: show all processes in BSD style.-ef: show full-format output.-o: choose output columns.
Show a common administrator command.
ps aux
Scenario-Based Questions¶
How would you handle ps aux?
ps aux
What would you verify afterward?
ps -p 1 -o pid,comm,args
Expected output should look similar to:
PID COMMAND COMMAND
1 systemd /usr/lib/systemd/systemd --switched-root --system --deserialize=31
Practical Task Questions¶
Practice in a lab by running a safe version of the command, explaining the target, and showing the verification output.
Quick Review¶
ps
ps aux
ps -p 1 -o pid,comm,args
Related Guides¶
Summary¶
A strong ps answer includes the purpose, a correct example, a common mistake, and a verification command with output you can interpret.