A systems administrator wants to list all local accounts in which the UID is greater than 500. Which of the following commands will give the correct output?

QuestionsCategory: XK0-005A systems administrator wants to list all local accounts in which the UID is greater than 500. Which of the following commands will give the correct output?
Admin Staff asked 6 months ago
A systems administrator wants to list all local accounts in which the UID is greater than 500. Which of the following commands will give the correct output?

A. find /etc/passwd -size +500

B. cut -d: -f1 /etc/passwd > 500

C. awk -F: '$3 > 500 {print $1}' /etc/passwd

D. sed '/UID/' /etc/passwd < 500








 

Suggested Answer: C

Community Answer: C



This question is in XK0-005 CompTIA Linux+ Exam
For getting CompTIA Linux+ Certificate



Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by CompTIA. 
Trademarks, certification & product names are used for reference only and belong to CompTIA.
The website does not contain actual questions and answers from CompTIA's Certification Exams.

Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.