Question: Linux / Unix: 1. How many lines in the / etc/passwd file are for neither a student nor a staff member? Here's the algorithm I
Linux / Unix:
1. How many lines in the /etc/passwd file are for neither a student nor a staff member? Here's the algorithm I want you to use to solve this:
- Determine the total number of lines in the file.
- Determine the total number of student entries in the file.
- Determine the total number of staff entries in the file.
- Use arithmetic expansion with the three numbers you obtained in order to determine how many lines are for neither a student nor a staff member.
To summarize, you need four command lines, one for each of the above steps. Be sure to copy/paste all four command lines AND their output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
