Linux Administration
medium

Pregunta de Linux Administration #019e3987

Enunciado de la Pregunta
Linux Administration
#cut
#/etc/passwd
#field delimiter
#login shell
Medio

What command will generate a list of user names from /etc/passwd along with their login shell?

A

column -s : 1,7 /etc/passwd

B

chop -c 1,7 /etc/passwd

C

colrm 1,7 /etc/passwd

D

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

Correcto

Explicación Oficial / Explicaciones de la Comunidad

The cut command is used for extracting parts of lines from a file. -d: specifies that the colon is the delimiter, and -f1,7 extracts the first field (username) and the seventh field (shell).