In: Computer Science
$ grep/ sbin/nologin$/etc/passwd| cut -d “:”-f1| short| less
explan the output
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