CompTIA XK0-005 Exam (page: 9)
CompTIA Linux+
Updated on: 25-Dec-2025

Viewing Page 9 of 61

A Linux administrator cloned an existing Linux server and built a new server from that clone. The administrator encountered the following error after booting the cloned server:



The administrator performed the commands listed below to further troubleshoot and mount the missing filesystem:



Which of the following should administrator use to resolve the device mismatch issue and mount the disk?

  1. mount disk by device-id
  2. fsck -A
  3. mount disk by-label
  4. mount disk by-blkid

Answer(s): C



A systems administrator installed a new software program on a Linux server. When the systems administrator tries to run the program, the following message appears on the screen.



Which of the following commands will allow the systems administrator to check whether the system supports virtualization?

  1. dmidecode -s system-version
  2. lscpu
  3. sysctl -a
  4. cat /sys/device/system/cpu/possible

Answer(s): B



A Linux administrator created the directory /project/access2all. By creating this directory, the administrator is trying to avoid the deletion or modification of files from non-owners. Which of the following will accomplish this goal?

  1. chmod +t /project/access2all
  2. chmod +rws /project/access2all
  3. chmod 2770 /project/access2all
  4. chmod ugo+rwx /project/access2all

Answer(s): A



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.)

  1. sysctl net.ipv4.ip_forward
  2. sysctl -w net.ipv4.ip_forward=1
  3. echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
  4. echo 1 > /proc/sys/net/ipv4/ip_forward
  5. sysctl ­p
  6. echo "net.ipv6.conf.all.forwarding=l" >> /etc/sysctl.conf

Answer(s): C,E



Due to low disk space, a Linux administrator finding and removing all log files that were modified more than 180 days ago. Which of the following commands will accomplish this task?

  1. find /var/log -type d -mtime +180 -print -exec rm {} \;
  2. find /var/log -type f -modified +180 -rm
  3. find /var/log -type f -mtime +180 -exec rm {} \
  4. find /var/log -type c -atime +180 ­remove

Answer(s): C



A junior administrator is setting up a new Linux server that is intended to be used as a router at a remote site. Which of the following parameters will accomplish this goal?





Answer(s): C



Some servers in an organization have been compromised. Users are unable to access to the organization's web page and other services. While reviewing the system log, a systems administrator notices messages from the kernel regarding firewall rules:



Which of the following commands will remediate and help resolve the issue?





Answer(s): B



A junior administrator is trying to set up a passwordless SSH connection to one of the servers. The administrator follows the instructions and puts the key in the authorized_key file at the server, but the administrator is still asked to provide a password during the connection.

Given the following output:



Which of the following commands would resolve the issue and allow an SSH connection to be established without a password?

  1. restorecon -rv .ssh/authorized_key
  2. mv .ssh/authorized_key .ssh/authorized_keys
  3. systemctl restart sshd.service
  4. chmod 600 mv .ssh/authorized_key

Answer(s): B



Viewing Page 9 of 61



Share your comments for CompTIA XK0-005 exam with other users:

soheib 7/24/2023 7:05:00 PM

question: 78 the right answer i think is d not a
Anonymous