A system administrator needs to generate a report of all processes currently running under the username appuser. The report must show a full-format listing, which includes the UID, PID, PPID, start time, and the full command string. Which of the following commands will produce this specific output?
The correct command is ps -f -U appuser. The -f option generates a full-format listing, which includes the UID, PID, PPID, C, STIME, TTY, TIME, and CMD (full command string) columns. The -U option selects all processes belonging to the specified real user ID (RUID) or name, in this case, appuser. The other options are incorrect. ps -u appuser selects processes by effective user ID and displays them in a user-oriented format, not the full format. ps -C appuser selects processes by command name, not by user. ps -e | grep appuser is a less precise method that lists all processes and then filters the lines containing the string appuser, which may not be accurate and does not guarantee the specific full-format output.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the difference between the `-U` and `-u` options in the `ps` command?
Open an interactive chat with Bash
What details are included in the full-format listing (`-f` option) of the `ps` command?
Open an interactive chat with Bash
Why is using `ps -e | grep appuser` not an ideal option for filtering processes?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .