Question: What would be the command to display the first and third columns (username and user id number) from the /etc/passwd file? What would be the

  1. What would be the command to display the first and third columns (username and user id number) from the /etc/passwd file?
  2. What would be the commands to find all the lines that start with the word root in the /etc/passwd file and then return the userid (UID) of the root account?

Please help in this linux question i will give a vote too for you!!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!