Which two commands would help you to do so?

As a Linux system administrator you want to check and print the names of the users having UID >
500, and are not using the bash or csh shell. Which two commands would help you to do so?
(Choose two.)

As a Linux system administrator you want to check and print the names of the users having UID >
500, and are not using the bash or csh shell. Which two commands would help you to do so?
(Choose two.)

A.
awk -F: ‘/([^(bash|csh)])$/ {if ($3 >500) print $1}’ /etc/passwd

B.
awk -F: ‘/([(bash)]|[(csh)])$/ {if ($3 >500) print $1}’ /etc/passwd

C.
awk -F: ‘/([^(bash)]|[^(csh)])$/ {if ($3 >500) print $1}’ /etc/passwd

D.
awk -F: ‘/([^(nologin)]|[^(ksh)])$/ {if ($3 >500)print$2}’ /etc/passwd

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *