XK0-005 Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :476 Q&As
  • Last Updated
    :May 25, 2026

CompTIA XK0-005 Online Questions & Answers

  • Question 161:

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

    A. sysctl net.ipv4.ip_forward
    B. sysctl -w net.ipv4.ip_forward=1
    C. echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
    D. echo 1 > /proc/sys/net/ipv4/ip_forward
    E. sysctl -p
    F. echo "net.ipv6.conf.all.forwarding=l" >> /etc/sysctl.conf

  • Question 162:

    A Linux administrator is scheduling a system job that runs a script to check available disk space every hour. The Linux administrator does not want users to be able to start the job. Given the following:

    The Linux administrator attempts to start the timer service but receives the following error message:

    Which of the following is MOST likely the reason the timer will not start?

    A. The checkdiskspace.timer unit should be enabled via systemct1.
    B. The timers.target should be reloaded to get the new configuration.
    C. The checkdiskspace.timer should be configured to allow manual starts.
    D. The checkdiskspace.timer should be started using the sudo command.

  • Question 163:

    During a security scan, the password of an SSH key file appeared to be too weak and was cracked. Which of the following commands would allow a user to choose a stronger password and set it on the existing SSH key file?

    A. passwd
    B. ssh
    C. ssh-keygen
    D. pwgen

  • Question 164:

    While troubleshooting server issues, a Linux systems administrator obtains the following output:

    [rootGhost ~]# totalfree -m usedfreesharedbuf f/cache available Mem:373635988824829

    Swap:20471824223

    Which of the following best describes the state of the system?

    A. The system has consumed the system memory and swap space.
    B. The system has enough free memory space.
    C. The system has swap disabled.
    D. The system has allocated enough buffer space.

  • Question 165:

    A systems administrator was tasked with assigning the temporary IP address/netmask 192.168.168.1/255.255.255.255 to the interface eth0 of a Linux server.

    When adding the address, the following error appears:

    # ip address add 192.168.168.1/33 dev eth0

    Error: any valid prefix is expected rather than "192.168.168.1/33".

    Based on the command and its output above, which of the following is the cause of the issue?

    A. The CIDR value /33 should be /32 instead.
    B. There is no route to 192.168.168.1/33.
    C. The interface eth0 does not exist.
    D. The IP address 192.168.168.1 is already in use.

  • Question 166:

    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?

    A. ~/.sshd/authkeys
    B. ~/.ssh/keys
    C. ~/.ssh/authorized_keys
    D. ~/.ssh/keyauth

  • Question 167:

    A Linux systems administrator is configuring a new filesystem that needs the capability to be mounted persistently across reboots. Which of the following commands will accomplish this task? (Choose two.)

    A. df -h /data
    B. mkfs.ext4 /dev/sdc1
    C. fsck /dev/sdc1
    D. fdisk -l /dev/sdc1
    E. echo "/data /dev/sdc1 ext4 defaults 0 0" >> /etc/fstab
    F. echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab

  • Question 168:

    A systems engineer is adding a new 1GB XFS filesystem that should be temporarily mounted under /ops/app. Which of the following is the correct list of commands to achieve this goal?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 169:

    A Linux administrator is creating a directory called CompTIA_doc, and it needs to switch to another location to perform some system-related tasks. Which of the following commands should the administrator use for this task?

    A. mkdir CompTIA_doc and cd CompTIA_doc
    B. mkdir CompTIA_doc + cd CompTIA_doc
    C. mkdir CompTIA_doc || cd CompTIA_doc
    D. mkdir CompTIA_doc andand cd CompTIA_doc

  • Question 170:

    A cloud engineer needs to launch a container named web-01 in background mode. Which of the following commands will accomplish this task?

    A. docker builder -f --name web-01 httpd
    B. docker load --name web-01 httpd
    C. docker ps -a --name web-01 httpd
    D. docker run -d --name web-01 httpd

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only CompTIA exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your XK0-005 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.