How can you show user information for processes using the ps command?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The correct choice is to use the ps command with the -u option to show user information for processes. When you use ps -u, it displays a detailed list of processes along with the user who owns each process. This includes relevant information such as the user ID, process ID, CPU usage, memory usage, and the command that started each process. It is particularly useful for monitoring or managing processes associated with specific users in a multi-user environment, which is often critical in Linux systems administration.

The other options present different output formats or process selections that don’t include user information in the same way. For instance, using ps -a shows information about all processes associated with terminals, but does not focus specifically on user information. Likewise, ps -e lists all processes running on the system but again without relating them specifically to the users. The ps -f command shows a full-format listing which includes the parent process ID and the command line but does not prioritize user information distinctly as the -u option does. Thus, the use of the -u flag specifically meets the requirement of displaying user information for processes effectively.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy