XK0-005 CompTIA Linux+ Exam

Loading demo links...

Showing 4–6 of 10 questions

Question 4

A Linux systems administrator needs to persistently enable IPv4 forwarding in one of the Linux systems. Which of the following commands can be used together to accomplish this task? (Choose two.)

Select all that apply, then click Submit answer.

  • sysctl net.ipv4.ip_forward

  • sysctl -w net.ipv4.ip_forward=1

  • echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf

  • echo 1 > /proc/sys/net/ipv4/ip_forward

  • sysctl –p

  • echo "net.ipv6.conf.all.forwarding=l" >> /etc/sysctl.conf

Question 5

A Linux system is failing to boot with the following error:

C:\Users\Admin\Desktop\Data\Odt data\Untitled.jpg

Which of the following actions will resolve this issue? (Choose two.)

Select all that apply, then click Submit answer.

  • 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 6

A systems administrator is tasked with setting up key-based SSH authentication. In which of the following locations should the administrator place the public keys for the server?

Select an option, then click Submit answer.

  • ~/.sshd/authkeys

  • ~/.ssh/keys

  • ~/.ssh/authorized_keys

  • ~/.ssh/keyauth