Answers

Question and Answer:

  Home  Search Pattern

⟩ One of the entry of /etc/passwd file is shown below user1x11112222google/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

a) awk `{print $1 ":" $6}` /etc/passwd

 139 views

More Questions for you: