210-250 · Question #101
Which Linux terminal command can be used to display all the processes?
The correct answer is D. ps -ef. The ps -ef command displays a complete, full-format listing of all running processes on a Linux system.
Question
Which Linux terminal command can be used to display all the processes?
Exhibit
Options
- Aps -m
- Bps -u
- Cps -d
- Dps -ef
How the community answered
(47 responses)- A2% (1)
- B4% (2)
- C2% (1)
- D91% (43)
Why each option
The ps -ef command displays a complete, full-format listing of all running processes on a Linux system.
The ps -m flag shows threads associated with processes or memory-related information depending on the implementation, not a complete list of all processes.
The ps -u flag filters and displays processes owned by a specific user, not all processes system-wide.
The ps -d flag selects all processes except session leaders, resulting in an incomplete view of all running processes.
The ps -ef command combines two flags: -e selects all processes regardless of owner or terminal, and -f produces a full-format listing that includes UID, PID, PPID, CPU usage, start time, and the complete command string. This combination is the standard method used to view every running process on a Linux system.
Concept tested: Linux ps command flags for listing all processes
Source: https://man7.org/linux/man-pages/man1/ps.1.html
Topics
Community Discussion
No community discussion yet for this question.
