Which command would provide you with useful information?

You are asked to determine user jacks default login directory. Which command would provide you
with useful information?

You are asked to determine user jacks default login directory. Which command would provide you
with useful information?

A.
cat /etc/passwd | grep jack

B.
cat /etc/group | grep jack

C.
cat /etc/shadow | grep jack

D.
cat /etc/default/passwd | grep jack

Explanation:
The /etc/passwd contains one entry per line for each user (or user account) of the
system. All fields are separated by a colon (:) symbol. Total seven fields as follows.
Reference: Understanding fields in /etc/passwd



Leave a Reply 2

Your email address will not be published. Required fields are marked *