A Linux system administrator is searching the passwd file for any username that starts with a digit. Which grep command should the administrator use?

IT Questions BankCategory: DevNetA Linux system administrator is searching the passwd file for any username that starts with a digit. Which grep command should the administrator use?

Question:
A Linux system administrator is searching the passwd file for any username that starts with a digit. Which grep command should the administrator use?

  • grep '(0-9}' /etc/passwd
  • grep '[0-9]' /etc/passwd
  • grep '_[0-9]' /etc/passwd
  • grep '^[0-9]' /etc/passwd

Exam with this question: DevNet Associate (v1.0) – Module 1 Exam Answers

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments