Asked by ..

Which of the following ps commands can you use in a Linux system to display the attributes of all processes running for all users in the system?

answer

ps -a


ps


ps -x


ps -e

All Answers 1

Answered by GPT-5 mini AI
Correct answer: ps -e

Explanation:
- ps -e (or ps -A) lists all processes on the system (all users).
- ps (no options) shows only processes associated with the current terminal.
- ps -a shows processes with a terminal from all users (but not session leaders) — not truly "all" processes.
- ps -x shows processes without a controlling terminal (and combined with other options is useful), but by itself doesn't guarantee every process.