Question: Write commands or shell scripts which will do the following operations on the file etc.passwd. Note that the passwd file is organized as follows: account

 Write commands or shell scripts which will do the following operations

Write commands or shell scripts which will do the following operations on the file etc.passwd. Note that the passwd file is organized as follows: account :password:UserID:GroupID:user name: home directory:shell Note that you may need to use a variety of commands along with piping and redirection to accomplish these tasks. For each task, copy the command or script and the output to the answer file. 9. What are the account names of the users who have real name "Machine"? 10. How many different default shells are there in the file? 11. Which user does not have a default shell assigned? 12. Which users do not have a name? 13. How many users are there in group 100? Print out the answer file and hand it in

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!