πŸ“Š Linux
Q. One of the entry of /etc/passwd file is shown below: user1:x:1111:2222:McqMate:/home/user1:/bin/bash Which among the following will print userid and home dir in the following pattern “user1:/home/user1”
  • (A) awk `{print $1 “:” $6}` /etc/passwd
  • (B) awk `{print $1 “:” $7}` /etc/passwd
  • (C) awk `{print $2 “:” $6}` /etc/passwd
  • (D) awk `{print $2 “:” $7}` /etc/passwd
πŸ’¬ Discuss
βœ… Correct Answer: (A) awk `{print $1 “:” $6}` /etc/passwd

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
190
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate