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 361:

    A systems administrator detected corruption in the /data filesystem. Given the following output:

    Which of the following commands can the administrator use to best address this issue?

    A. umount /data mkfs . xfs /dev/sclcl mount /data
    B. umount /data xfs repair /dev/ sdcl mount /data
    C. umount /data fsck /dev/ sdcl mount / data
    D. umount /data pvs /dev/sdcl mount /data

  • Question 362:

    Following the migration from a disaster recovery site, a systems administrator wants a server to require a user to change credentials at initial login. Which of the following commands should be used to ensure the aging attribute?

    A. chage -d 2 user
    B. chage -d 0 user
    C. chage -E 0 user
    D. chage -d 1 user

  • Question 363:

    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 364:

    Which of the following data structures is written in JSON?

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

  • Question 365:

    A junior Linux administrator is tasked with installing an application. The installation guide states the application should only be installed in a run level 5 environment.

    Which of the following commands would ensure the server is set to runlevel 5?

    A. systemct1 isolate multi-user.target
    B. systemct1 isolate graphical.target
    C. systemct1 isolate network.target
    D. systemct1 isolate basic.target

  • Question 366:

    A Linux engineer finds multiple failed login entries in the security log file for application users. The Linux engineer performs a security audit and discovers a security issue. Given the following:

    # grep -iE '*www*|db' /etc/passwd

    www-data:x:502:502:www-data:/var/www:/bin/bash

    db:x: 505:505:db: /opt/db:/bin/bash

    Which of the following commands would resolve the security issue?

    A. usermod -d /srv/www-data www-data andand usermod -d /var/lib/db db
    B. passwd -u www-data andand passwd -u db
    C. renice -n 1002 -u 502 andand renice -n 1005 -u 505
    D. chsh -s /bin/false www-data andand chsh -s /bin/false db

  • Question 367:

    A developer is unable to access a Linux server via SSH. Given the following output:

    SSH server configuration (/etc/ssh/sshd_config):

    PermitRootLogin no

    PubkeyAuthentication yes

    PasswordAuthentication yes

    GSSAPIAuthentication yes

    X11Forwarding no

    User Information (/etc/passwd):

    developer:x:1000:1000:comptia:/home/developer:/bin/bash

    User Shadow File (/etc/shadow):

    developer:!!::0:99999:7:::

    Which of the following explains why the developer is unable to log in to the server?

    A. The developer's private key has been deleted from the server.
    B. The developer's account has been locked out.
    C. The developer's public key is in the wrong location.
    D. SSH has been disabled for user log-in.

  • Question 368:

    Developers have requested implementation of a persistent, static route on the application server. Packets sent over the interface eth0 to 10.0.213.5/32 should be routed via 10.0.5.1. Which of the following commands should the administrator run to achieve this goal?

    A. route -i etho -p add 10.0.213.5 10.0.5.1
    B. route modify eth0 +ipv4.routes "10.0.213.5/32 10.0.5.1"
    C. echo "10.0.213.5 10.0.5.1 eth0" > /proc/net/route
    D. ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0

  • Question 369:

    A Linux administrator needs to expose port 9000 for a container to listen during runtime. The Linux administrator creates a Dockerfile with the following entries:

    sql

    FROM node:9-alpine

    WORKDIR /usr/src/app

    COPY package.json ./

    RUN npm install

    COPY . . EXPOSE 9000

    CMD ["npm", "start"]

    Which of the following commands should the administrator use to accomplish this task? (Select two).

    A. docker build -t Test-Container
    B. docker tag Test-Container
    C. docker inspect Test-Container
    D. docker run -p 5000:80 Test-Container
    E. docker push Test-Container
    F. docker run -p 80:9000 Test-Container

  • Question 370:

    The applications team is reporting issues when trying to access the web service hosted in a Linux system. The Linux systems administrator is reviewing the following outputs: Output 1:

    * httpd.service = The Apache HTTPD Server

    Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)

    Active: inactive (dead)

    Docs: man:httpd(8) man:apachectl(8)

    Output 2:

    16:51:16

    up 28 min, 1 user, load average: 0.00, 0.00, 0.07

    Which of the following statements best describe the root cause? (Select two).

    A. The httpd service is currently started.
    B. The httpd service is enabled to auto start at boot time, but it failed to start.
    C. The httpd service was manually stopped.
    D. The httpd service is not enabled to auto start at boot time.
    E. The httpd service runs without problems.
    F. The httpd service did not start during the last server reboot.

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.