Question: Help with linux command - how to i get this so it ony displays the output of the user name halt here is the command
Help with linux command - how to i get this so it ony displays the output of the user name halt
here is the command : awk -F/ '$NF != "nologin"' /etc/passwd | grep 'halt'
here is the output : halt:x:7:0:halt:/sbin:/sbin/halt
I need it so the output is just halt thanks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
