Difficulty: Easy
Correct Answer: -f
Explanation:
Introduction / Context:
Process inspection is a routine admin task. The ps command displays process information, and the ability to see the full command and its arguments is crucial for troubleshooting services, scripts, and rogue processes.
Given Data / Assumptions:
Concept / Approach:
The -f (full) option prints a fuller set of columns, typically including UID, PID, PPID, C, STIME, TTY, TIME, and CMD with arguments. Other listed options (-1, -2, -4) do not represent standard System V ps flags for showing the command line; on GNU, long options like -e and -f are common for “everything, full.”
Step-by-Step Solution:
Verification / Alternative check:
Running ps -ef on Linux shows a CMD column containing the complete invoked command and arguments, verifying the option choice.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
-f.
Discussion & Comments