Q482
One of the entry of /etc/passwd file is shown below: user1:x:1111:2222:Example:/home/user1:/bin/bash Which among the following will print userid and home dir in the following pattern “user1:/home/user1”
A.
awk `{print 6}` /etc/passwd
AnswerB.
awk `{print 7}` /etc/passwd
C.
awk `{print 6}` /etc/passwd
D.
awk `{print 7}` /etc/passwd
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board