97.2k views
0 votes
Give the Linux bash pipelined command that would take the output of the "cat /etc/passwd" command (that lists the contents of the system "password" file) and give us the single number showing how many accounts are configured in this file and store this information into the variable NUM_ACCOUNTS. Put only single spaces between commands, flags, piping operators, etc.

1 Answer

5 votes

Answer:

See attached solution

Step-by-step explanation:

Give the Linux bash pipelined command that would take the output of the "cat-example-1
User Kalpesh Gamit
by
4.1k points