Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

So I\'m completing my homework and I was given this question: 1. The /etc/passwd

ID: 3767665 • Letter: S

Question

So I'm completing my homework and I was given this question:

1. The /etc/passwd file on the class server has a record on each line, and each record is broken up into fields. Using the commands you’ve learned this week to extract and manipulate field-based data, create a listing of the different login shells being used on the class server. The listing should show the name of each shell being used, with a count of how many times it occurs in the file.

You should do this in one line with multiple commands separated by the pipe character. Do not presuppose the names of any shells before running this operation.

Show your results and your method for obtaining your results.

After re-reading the text I am completely boggled and unsure of what I have to do. I inputted the command cat /etc/passwd to get a view of the text. It's pretty big but here's an excerpt:

jclark08:x:602:700:Jaime Clark:/home/jclark08:/bin/bash
mbaerm01:x:603:700:Michelle Baerman:/home/mbaerm01:/bin/dash
rrodri16:x:604:700:Rafael Rodriguez:/home/rrodri16:/bin/bash
edutro01:x:605:700:Eric Dutro:/home/edutro01:/bin/bash
ctalla01:x:606:700:Christopher Tallant:/home/ctalla01:/bin/bash
agross03:x:607:700:Alvita Jo Dixon:/home/agross03:/bin/tcsh
spatel10:x:608:700:Samit Patel:/home/spatel10:/bin/bash
thile01:x:609:700:Todd Hile:/home/thile01:/bin/tcsh

Any ideas on how to solve or even where to start? Any help would be greatly appreciated.

I am working on Linux in a school terminal called SSH Secure Shell

Explanation / Answer

1.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote