Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :396 Q&As
  • Last Updated
    :Mar 23, 2025

CompTIA CompTIA Certifications XK0-005 Questions & Answers

  • Question 271:

    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?

    A. chmod +t /project/access2all

    B. chmod +rws /project/access2all

    C. chmod 2770 /project/access2all

    D. chmod ugo+rwx /project/access2all

  • Question 272:

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

    A Linux administrator generated a list of users who have root-level command-line access to the Linux server to meet an audit requirement. The administrator analyzes the following /etc/passwd and /etc/sudoers files: $ cat /etc/passwd root:x: 0:0: :/home/root: /bin/bash lee: x: 500: 500: :/home/lee:/bin/tcsh mallory:x: 501:501: :/root:/bin/bash eve:x: 502: 502: /home/eve:/bin/nologin carl:x:0:503: :/home/carl:/bin/sh bob:x: 504: 504: : /home/bob:/bin/ksh alice:x: 505:505: :/home/alice:/bin/rsh $ cat /etc/sudoers Cmnd_Alias SHELLS = /bin/tcsh, /bin/sh, /bin/bash Cmnd_Alias SYSADMIN = /usr/sbin/tcpdump ALL = (ALL) ALL ALL = NOPASSWD: SYSADMIN Which of the following users, in addition to the root user, should be listed in the audit report as having root-level command-line access? (Select two).

    A. Carl

    B. Lee

    C. Mallory

    D. Eve

    E. Bob

    F. Alice

  • Question 274:

    A Linux administrator is troubleshooting the root cause of a high CPU load and average.

    Which of the following commands will permanently resolve the issue?

    A. renice -n -20 6295

    B. pstree -p 6295

    C. iostat -cy 1 5

    D. kill -9 6295

  • Question 275:

    A Linux user reported the following error after trying to connect to the system remotely:

    ssh: connect to host 10.0.1.10 port 22: Resource temporarily unavailable

    The Linux systems administrator executed the following commands in the Linux system while trying to diagnose this issue:

    Which of the following commands will resolve this issue?

    A. firewall-cmd --zone=public --permanent --add-service=22

    B. systemct1 enable firewalld; systemct1 restart firewalld

    C. firewall-cmd --zone=public --permanent --add-service=ssh

    D. firewall-cmd --zone=public --permanent --add-port=22/udp

  • Question 276:

    Based on an organization's new cybersecurity policies, an administrator has been instructed to ensure that, by default, all new users and groups that are created fall within the specified values below.

    To which of the following configuration files will the required changes need to be made?

    A. /etc/login.defs

    B. /etc/security/limits.conf

    C. /etc/default/useradd

    D. /etc/profile

  • Question 277:

    Which of the following data structures is written in JSON?

    A. Option A

    B. Option B

    C. Option C

    D. Option D

  • Question 278:

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

    A developer reported an incident involving the application configuration file /etc/httpd/conf/httpd.conf that is missing from the server. Which of the following identifies the RPM package that installed the configuration file?

    A. rpm -qf /etc/httpd/conf/httpd.conf

    B. rpm -ql /etc/httpd/conf/httpd.conf

    C. rpm --query /etc/httpd/conf/httpd.conf

    D. rpm -q /etc/httpd/conf/httpd.conf

  • Question 280:

    A systems administrator is investigating why one of the servers has stopped connecting to the internet.

    Which of the following is causing the issue?

    A. The DNS address has been commented out in the configuration file.

    B. The search entry in the /etc/resolv.conf file is incorrect.

    C. Wired connection 1 is offline.

    D. No default route is defined.

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.