nerdexam
CompTIA

XK0-005 · Question #488

An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the…

The correct answer is A. rpm -qa | grep kernel; uname -a. The command rpm -qa | grep kernel lists all the installed kernel packages, and the command uname -a displays the current kernel version. These commands can help the administrator identify the correct version of the /boot/vmlinuz file, which is the kernel image file. The other…

Troubleshooting

Question

An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct version of this file?

Options

  • Arpm -qa | grep kernel; uname -a
  • Byum -y update; shutdown -r now
  • Ccat /etc/centos-release; rpm -Uvh --nodeps
  • Dtelinit 1; restorecon -Rv /boot

How the community answered

(45 responses)
  • A
    84% (38)
  • B
    2% (1)
  • C
    9% (4)
  • D
    4% (2)

Explanation

The command rpm -qa | grep kernel lists all the installed kernel packages, and the command uname -a displays the current kernel version. These commands can help the administrator identify the correct version of the /boot/vmlinuz file, which is the kernel image file. The other options are not relevant or helpful for this task.

Topics

#Linux kernel#RPM package manager#System troubleshooting#Command-line utilities

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice