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
A
A