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

    An administrator attempts to rename a file on a server but receives the following error.

    The administrator then runs a few commands and obtains the following output:

    Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?

    A. chgrp reet files
    B. chacl -R 644 files
    C. chown users files
    D. chmod -t files

  • Question 82:

    A systems administrator changed the file permissions on the myfile file: $ sudo chmod g+w myfile

    $ ls -l myfile -rwxrwxr-x 1 admin editors C 2022-10-13 10:45 myfile Then, the administrator added an existing user test to the editors group: $ sudo usermod -aG editors test However, the user test is still unable to edit the file. Which of the following solutions will fix this issue?

    A. The user test needs to log out and log back in before editing the myfile file.
    B. The file is only writable by the root user, and the user test needs root permissions.
    C. The group for the user test needs to be reloaded by running sudo source /etc/group.
    D. In order to edit the file, additional permissions are required that the user test does not have.

  • Question 83:

    A Linux administrator needs to transfer a local file named accounts . pdf to a remote / tmp directory of a server with the IP address 10.10.10.80. Which of the following commands needs to be executed to transfer this file?

    A. rsync [email protected]: /tmp accounts.pdf
    B. scp accounts.pdf [email protected]:/tmp
    C. cp [email protected]. 80: /tmp accounts.pdf
    D. ssh accounts.pdf [email protected]: /tmp

  • Question 84:

    A new file was added to a main Git repository. An administrator wants to synchronize a local copy with the contents of the main repository. Which of the following commands should the administrator use for this task?

    A. git reflog
    B. git pull
    C. git status
    D. git push

  • Question 85:

    A user is cleaning up a directory because it has more than 100,000 files that were generated from an experiment.

    When the user tries to remove the unneeded experiment files, the user receives an error:

    arduino

    cannot execute [Argument list too long]

    Which of the following should the user execute to remove these files?

    A. find . -name "experiment*.txt" -exec rm "{}" ;
    B. rm -rf experiment*.txt
    C. rm --force experiment*.txt
    D. for i in experiment*.txt; do find . -name $i -exec rmdir "{}" ; done

  • Question 86:

    A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?

    A. unzip -v
    B. bzip2 -z
    C. gzip
    D. funzip

  • Question 87:

    The group named support is unable to make changes to the config file. An administrator is reviewing the permissions and sees the following:

    S Is -1 config

    -rw-rw----. 1 root app 4682 02-15 11:25 config

    Which of the following should the administrator execute in order to give the support group access to modify the file while preserving the current ownership?

    A. chown :support config
    B. setfacl -m g:support:rw- config
    C. chmod 664 config
    D. chmod g+s config

  • Question 88:

    Users are reporting that a Linux server is responding slowly. A systems administrator troubleshooting the server issue sees the following:

    Which of the following is most likely the issue?

    A. The CPU is mostly waiting for I/O operations.
    B. / filesystem does not have enough storage allocated.
    C. /var filesystem is almost full.
    D. The CPU capacity is inadequate.

  • Question 89:

    A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users' access will be disabled once the project is over. The expiration date should be 2021-09-30. Which of the following commands will accomplish this task?

    A. sudo useradd -e 2021-09-30 Project_user
    B. sudo useradd -c 2021-09-30 Project_user
    C. sudo modinfo -F 2021-09-30 Project_uses
    D. sudo useradd -m -d 2021-09-30 Project_user

  • Question 90:

    The systemd logs are disappearing after a restart, even though the free disk space is adequate. Which of the following is the cause of this behavior?

    A. The option Storage=volatile is set in the journald configuration
    B. The journald size limit has been exceeded
    C. The service systemd-journald is disabled and masked
    D. The directory /tmp does not have enough tree space

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.