ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 318 - XK0-005 discussion

Report
Export

A systems administrator wants to list all local account names and their respective UIDs. Which of the following commands will provide output containing this information?

A.

cut -c: -f3,1 /etc/passwd

Answers
A.

cut -c: -f3,1 /etc/passwd

B.

cut -d: -s2,3 /etc/passwd

Answers
B.

cut -d: -s2,3 /etc/passwd

C.

cut -d: -f1,3 /etc/passwd

Answers
C.

cut -d: -f1,3 /etc/passwd

D.

cut -n: -f1,2 /etc/passwd

Answers
D.

cut -n: -f1,2 /etc/passwd

Suggested answer: C

Explanation:

The /etc/passwd file contains user account information, where each line includes fields separated by colons. To list all user accounts and their UIDs, use cut -d: -f1,3 /etc/passwd. This cuts the first field (username) and the third field (UID) from each line.

asked 09/10/2024
Abigail Bormann
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first