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

    A hardened physical Linux system allows regular, unprivileged users to remotely connect to the server using SSH only. No sudo tool has been installed. Which of the following should the Linux administrator use to perform administrative tasks on this host? (Select two).

    A. Create an SSH key and copy it to the remote server to allow passwordless login
    B. Access the server's physical console and use the root user's password to log in
    C. Install the telnet server on this system to be able to use a root account
    D. Use the su command and enter the root user's password
    E. Install the sudo command using the unprivileged user's account
    F. Add the user to the wheel group

  • Question 332:

    A Linux engineer needs to download a ZIP file and wants to set the nice of value to -10 for this new process. Which of the following commands will help to accomplish the task?

    A. $ nice -v -10 wget https://foo.com/installation.zip
    B. $ renice -v -10 wget https://foo.com/installation.2ip
    C. $ renice -10 wget https://foo.com/installation.zip
    D. $ nice -10 wget https://foo.com/installation.zip

  • Question 333:

    Which of the following paths stores the configuration files in a Linux filesystem?

    A. /proc
    B. /home
    C. /root
    D. /etc

  • Question 334:

    Some servers in an organization have been compromised. Users are unable to access to the organization's web page and other services. While reviewing the system log, a systems administrator notices messages from the kernel regarding firewall rules:

    Which of the following commands will remediate and help resolve the issue?

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

  • Question 335:

    Which of the following can reduce the attack surface area in relation to Linux hardening?

    A. Customizing the log-in banner
    B. Reducing the number of directories created
    C. Extending the SSH startup timeout period
    D. Enforcing password strength and complexity

  • Question 336:

    A Linux administrator is troubleshooting a memory-related issue. Based on the output of the commands:

    Which of the following commands would address the issue?

    A. top -p 8321
    B. kill -9 8321
    C. renice -10 8321
    D. free 8321

  • Question 337:

    SIMULATION

    Junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior

    administrator from running Apache.

    INSTRUCTIONS

    Install Apache and start the service. Verify that the Apache service is running with the defaults.

    Typing "help" in the terminal will show a list of relevant event commands.

    If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

    A. See the explanation below.
    B. PlaceHolder
    C. PlaceHolder
    D. PlaceHolder

  • Question 338:

    A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?

    A. iptables -F INPUT -j 192.168.10.50 -m DROP
    B. iptables -A INPUT -s 192.168.10.30 -j DROP
    C. iptables -i INPUT --ipv4 192.168.10.50 -z DROP
    D. iptables -j INPUT 192.168.10.50 -p DROP

  • Question 339:

    A Linux administrator reviews a set of log output files and needs to identify files that contain any occurrence of the word denied. All log files containing entries in uppercase or lowercase letters should be included in the list. Which of the following commands should the administrator use to accomplish this task?

    A. find . -type f -print | xrags grep -ln denied
    B. find . -type f -print | xrags grep -nv denied
    C. find . -type f -print | xrags grep -wL denied
    D. find . -type f -print | xrags grep -li denied

  • Question 340:

    A new user is experiencing issues creating files in the folder /home/testuser/testdir/. The directory needs to be accessible for reading by other users in the system. The administrator gathers the following information:

    drwxr-xr-x. 2 root testuser 6 Oct 19 11:22 testdir

    Which of the following commands should the administrator use to solve the issue? (Select TWO.)

    A. chmod u+w /home/testuser/testdir/
    B. usermod -G root testuser
    C. chmod g+w /home/testuser/testdir/
    D. usermod -G testuser root
    E. chown newuser /home/testuser

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.