Bird
0
0

You want to list all processes owned by user 'alice' with detailed info. Which command should you use?

hard📝 Application Q15 of 15
Linux CLI - Process Management
You want to list all processes owned by user 'alice' with detailed info. Which command should you use?
Aps aux | grep alice
Bps -ef | grep alice
Cps -u alice -f
Dps -U alice
Step-by-Step Solution
Solution:
  1. Step 1: Understand options for user filtering

    ps -u alice lists processes for user alice; -f adds full details.
  2. Step 2: Compare other options

    Using ps -ef | grep alice or ps aux | grep alice relies on grep which may match username in other fields, not just owner. ps -U alice lists processes by real user ID but lacks full details.
  3. Final Answer:

    ps -u alice -f -> Option C
  4. Quick Check:

    ps -u alice -f lists alice's processes fully [OK]
Quick Trick: Use ps -u username -f for detailed user processes [OK]
Common Mistakes:
  • Using grep which may show unrelated lines
  • Using -U without details
  • Confusing -u and -U options

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes