CompTIA Linux+ (XK0-005) — Question 3

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?

Answer options

Correct answer: A

Explanation

The command in option A, 'rpm -qa | grep kernel; uname -a', is correct as it lists installed kernel packages and shows the current kernel version, which helps in identifying the necessary /boot/vmlinuz file. Options B and D involve actions like updating or rebooting the server, which do not help in identifying the file version. Option C does not directly provide the version of the deleted kernel file.