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 Exam Items RepositoryCategory: DevNetA Linux system administrator is searching the passwd file for any username that starts with a digit. Which grep command should the administrator use?

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

Related exam: DevNet Associate (v1.0) – Module 1 Exam Answers