XK0-005 Exam Details

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

CompTIA XK0-005 Online Questions & Answers

  • Question 451:

    The journald entries have filled a Linux machine's /var volume. Which of the following is the best command for a systems administrator to use to free up the disk space occupied by these entries?

    A. journalctl --rotate journalctl --vacuum-time=1s
    B. systemctl stop systemd-journald systemctl start systemd-journald
    C. rm -rf /var/log/journal systemctl restart systemd-journald
    D. pkill -HUP systemd-journald systemctl restart systemd-journald

  • Question 452:

    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?

    A. dmidecode -s system-version
    B. lscpu
    C. sysctl -a
    D. cat /sys/device/system/cpu/possible

  • Question 453:

    A systems administrator needs to check if the service systemd-resolved.service is running without any errors. Which of the following commands will show this information?

    A. systemct1 status systemd-resolved.service
    B. systemct1 enable systemd-resolved.service
    C. systemct1 mask systemd-resolved.service
    D. systemct1 show systemd-resolved.service

  • Question 454:

    A systems administrator is investigating a service that is not starting up. Given the following information:

    Which of the following systemd commands should the administrator use in order to obtain more details about the failing service?

    A. systemct1 analyze network
    B. systemct1 info network
    C. sysctl -a network
    D. journalctl -xu network

  • Question 455:

    A Linux administrator wants a permission bit on a shared folder that allows only the owner of the file within that directory or the root user to delete or rename the file. Which of the following commands will help achieve this goal?

    A. chmod u-w /directory/
    B. chmod a-r /directory/
    C. chmod o-t /directory/
    D. chmod +t /directory/

  • Question 456:

    A systems administrator is enabling LUKS on a USB storage device with an ext4 filesystem format. The administrator runs dmesg and notices the following output:

    Given this scenario, which of the following should the administrator perform to meet these requirements? (Select three).

    A. gpg /dev/sdcl
    B. pvcreate /dev/sdc
    C. mkfs . ext4 /dev/mapper/LUKSCJ001 - L ENCRYPTED
    D. umount / dev/ sdc
    E. fdisk /dev/sdc
    F. mkfs . vfat /dev/mapper/LUKS0001 -- L ENCRYPTED
    G. wipefs --a/dev/sdbl
    H. cryptsetup IuksFormat /dev/ sdcl

  • Question 457:

    Which of the following is the best tool for dynamic tuning of kernel parameters?

    A. tuned
    B. tune2fs
    C. tuned-adm
    D. turbostat

  • Question 458:

    An administrator needs to install an Apache web server on an Ubuntu server. Which of the following commands should the administrator use?

    A. zypper install apache
    B. apt install apache2
    C. yum install httpd
    D. rpm -i apache.deb

  • Question 459:

    A systems technician is working on deploying several microservices to various RPM-based systems, some of which could run up to two hours. Which of the following commands will allow the technician to execute those services and continue deploying other microservices within the same terminal section?

    A. gedit and disown
    B. kill 9 %1
    C. fg %1
    D. bg %1 job name

  • Question 460:

    A server is experiencing intermittent connection issues. Some connections to the Internet work as intended, but some fail as if there is no connectivity. The systems administrator inspects the server configuration:

    Which of the following is MOST likely the cause of the issue?

    A. An internal-only DNS server is configured.
    B. The IP netmask is wrong for ens3.
    C. Two default routes are configured.
    D. The ARP table contains incorrect entries.

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.