XK0-005 Practice Test practice questions, page 18 of 19, with answer review and explanations.
Question 86
An administrator transferred a key for SSH authentication to a home directory on a remote server. The key file was moved to .ssh/authorized_keys location in order to establish SSH connection without a password. However, the SSH command still asked for the password. Given the following output: Which of the following commands would resolve the issue?
restorecon .ssh/authorized_keys
ssh_keygen -t rsa -o .ssh/authorized_keys
chown root:root .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
Question 87
A cloud engineer needs to remove all dangling images and delete all the images that do not have an associated container. Which of the following commands will help to accomplish this task?
docker images prune -a
docker push images -a
docker rmi -a images
docker images rmi --all
Question 88
A Linux system is failing to boot with the following error: Which of the following actions will resolve this issue? (Choose two.)
Execute grub-install --root-directory=/mnt and reboot.
Execute grub-install /dev/sdX and reboot.
Interrupt the boot process in the GRUB menu and add rescue to the kernel line.
Fix the partition modifying /etc/default/grub and reboot.
Interrupt the boot process in the GRUB menu and add single to the kernel line.
Boot the system on a LiveCD/ISO.
Question 89
A Linux administrator needs to create an image named sda.img from the sda disk and store it in the /tmp directory. Which of the following commands should be used to accomplish this task?
dd of=/dev/sda if=/tmp/sda.img
dd if=/dev/sda of=/tmp/sda.img
dd --if=/dev/sda --of=/tmp/sda.img
dd --of=/dev/sda --if=/tmp/sda.img
Question 90
A Linux administrator is creating a primary partition on the replacement hard drive for an application server. Which of the following commands should the administrator issue to verify the device name of this partition?