LPIC-1 Exam 102 v5 (Linux Administrator) — Question 54

Which of the following getent invocations lists all existing users?

Answer options

Correct answer: C

Explanation

The correct answer is C, as 'getent passwd' retrieves the user account information from the system's user database. The other options either do not exist or do not provide a list of users, making them invalid for this purpose.