Question

In: Computer Science

$ grep/ sbin/nologin$/etc/passwd| cut -d “:”-f1| short| less explan the output

$ grep/ sbin/nologin$/etc/passwd| cut -d “:”-f1| short| less

explan the output

Solutions

Expert Solution

if we part apart from the syntax, so first we display all the lines which contain nologin word inside passwd file.

Now we separate the first column only using the cut command with delimiter : colon with column f1

now sort this data using sort command from ascending order

and at last less command is for display only till terminal shows and remaining lines will be shown by pressing enter

Thanks


Related Solutions

This lab will explore the password files. a) Open a terminal window and type less /etc/passwd....
This lab will explore the password files. a) Open a terminal window and type less /etc/passwd. Which line describes the root account? b) Type ls –l /etc/passwd. Who is the owner of the passwd file? What are the permissions? c) Type less /etc/shadow. What is in the password filed for most of these accounts? d) Type ls –l /etc/shadow. Who owns this file and how do the permissions differ from the /etc/passwd file? e) Type cat /etc/default/useradd. What is the...
What does this command do & ps -ef | grep tty | less Searches the output...
What does this command do & ps -ef | grep tty | less Searches the output from the ps command for tty and displays it one screen at a time Displays all of the interactive running processes Searches the output from the ps command for the word more Displays output from the ps command one screen at a time
Design a combinational circuit with four inputs (A, B, C and D) and four outputs (W, X, Y and Z). When the binary input is less than 10 the binary output is two greater than the input. When the binary input is equal or greater than 10 the binary output
Design a combinational circuit with four inputs (A, B, C and D) and four outputs (W, X, Y and Z). When the binary input is less than ten the binary output is two greater than the input. When the binary input is equal or greater than ten the binary output is three less than the input.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT