XK0-006 Exam Details

  • Exam Code
    :XK0-006
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :178 Q&As
  • Last Updated
    :Jul 14, 2026

CompTIA XK0-006 Online Questions & Answers

  • Question 131:

    A Linux administrator discovers that a configured schedule is not running properly and needs to re-create the schedule. The task should run every Monday at 13:30 but only during the months of February, May, August, and November.

    Which of the following options should the administrator use?

    A. OnCalendar=Mon *-2,5,8,11 13:30:00
    B. OnCalendar=Mon *-Feb,*-May,*-Aug,*-Nov 13:30:00
    C. OnCalendar=*-2,5,8,11 Mon 13:30:00
    D. OnCalendar=Mon *-Feb *-May *-Aug *-Nov 13:30:00

  • Question 132:

    A Linux administrator receives reports that an application hosted in a system is not completing tasks in the allocated time. The administrator connects to the system and obtains the following details:

    Which of the following actions can the administrator take to help speed up the jobs?

    A. Increase the amount of free memory available to the system.
    B. Increase the amount of CPU resources available to the system.
    C. Increase the amount of swap space available to the system.
    D. Increase the amount of disks available to the system.

  • Question 133:

    A systems administrator needs to create a new service unit file. This new unit file is required to start when all services are running with the command-line interface only.

    Which of the following options should the administrator use to accomplish this task?

    A. WantedBy=basic.target
    B. WantedBy=network-online.target
    C. WantedBy=multi-user.target
    D. WantedBy=graphical.target

  • Question 134:

    A systems administrator needs to compress log files using the .tar.bz2 format.

    Which of the following commands should the administrator use?

    A. tar -cvtf logs.car.bz2 /var/log/*
    B. tar -cvzf logs.tar.bz2 /var/log/*
    C. tar -cvjf logs.tar.bz2 /var/log/*
    D. tar -cvbf logs.tar.bz2 /var/log/*

  • Question 135:

    The application team is having issues accessing their data in their /app filesystem. Given the following outputs:

    Which of the following is the reason for this issue?

    A. The fllesystem was mounted incorrectly.
    B. The /etc/fstab configuration is wrong.
    C. A physical volume is missing.
    D. The data has been deleted.

  • Question 136:

    A Linux administrator needs to rebuild a container with the httpd service in order to change some default parameters.

    Which of the following should be the first command line in the Dockerfile?

    A. FROM httpd
    B. BASE httpd
    C. USE httpd
    D. INHERIT httpd

  • Question 137:

    A Linux administrator tries to install Ansible in a Linux environment. One of the steps is to change the owner and the group of the directory /opt/Ansible and its contents.

    Which of the following commands will accomplish this task?

    A. groupmod -g Ansible -n /opt/Ansible
    B. chown -R Ansible:Ansible /opt/Ansible
    C. usermod -aG Ansible /opt/Ansible
    D. chmod -c /opt/Ansible

  • Question 138:

    Users report issues when trying to securely connect to a web server. The systems administrator receives the following outputs:

    firewall-cmd --list-all

    # (Only ports for ssh, cockpit, dhcp-client are listed.)

    netstat -an | grep LISTEN

    tcp 0 0 0.0.0.0:443 ... LISTEN

    Which of the following actions will fix this issue?

    A. Restarting the firewall service
    B. Starting the web application
    C. Restarting the web application
    D. Opening firewall port 443

  • Question 139:

    A Linux administrator attempts to log in to a server over SSH as root and receives the following error message: Permission denied, please try again. The administrator is able to log in to the console of the server directly with root and confirms the password is correct. The administrator reviews the configuration of the SSH service and gets the following output:

    Based on the above output, which of the following will most likely allow the administrator to log in over SSH to the server?

    A. Log out other user sessions because only one is allowed at a time.
    B. Enable PAM and configure the SSH module.
    C. Modify the SSH port to use 2222.
    D. Use a key to log in as root over SSH.

  • Question 140:

    A Linux administrator is changing the default system umask. The newly created files should have the -rw-r----- permission, and the newly created directories should have the drwxr----- permission.

    Which of the following commands should the administrator use?

    A. umask 0035
    B. umask 0036
    C. umask 0037
    D. umask 0038

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-006 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.