CompTIA Linux+ (v6) Free Sample Questions

19 free sample questions218 in the full practice test Other versions: XK0-006(161),XK0-005(279)

Try simulator

XK0-004 Sample Questions

  1. Question 2

    Joe, a user, is unable to log in to the server and contracts the systems administrator to look into the issue. The administrator examines the /etc/passwd file and discovers the following entry:joe:x:505:505::/home/joe:/bin/falseWhich of the following commands should the administrator execute to resolve the problem?

    Answer and explanation

    Correct answer: A

    A

  2. Question 3

    The development team has automated their software build process so each time a change is submitted to the source code repository, a new software build is compiled. They are requesting that the Linux operations team look into automating the deployment of the software build into the test environment.

    Which of the following is the benefit to the development team for implementing deployment automation?

    Answer and explanation

    Correct answer: D

    D

  3. Question 4

    A corporate server security policy states, “Ensure password hashes are not readable by non-administrative users. The administrator should check the permissions on which of the following files to ensure the server satisfies this policy?

    Answer and explanation

    Correct answer: B

    B

  4. Question 5

    Which of the following statements BEST represents what the term “agentless means regarding orchestration?

    Answer and explanation

    Correct answer: A

  5. Question 6

    A Linux administrator is testing a new web application on a local laptop and consistently shows the following 403 errors in the laptop’s logs:

    The web server starts properly, but an error is generated in the audit log.

    Which of the following settings should be enabled to prevent this audit message?

    Question 6 image
    Answer and explanation

    Correct answer: A

    A

  6. Question 7

    A Linux administrator must identify a user with high disk usage. The administrator runs the # du -s /home/* command and gets the following output:

    Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space.

    Which of the following commands will accomplish this task?

    Question 7 image
    Answer and explanation

    Correct answer: C

  7. Question 8

    A systems administrator has scheduled a system update for a server. The update includes a resynchronization of the package database and updates to the current packages and the system distribution packages.

    Which of the following commands contains the proper order ofthis update?

    Answer and explanation

    Correct answer: B

    B

  8. Question 9

    A Linux administrator is restoring the SELinux contexts on an entire system.

    Which of the following commands is the BEST option to complete this task?

    Answer and explanation

    Correct answer: D

    Reference: https://access.redhat.eom/documentation/en-us/red hat enterprise linux/7/html/selinux users and administrators guide/sect-security-enhanced linux-working with selinux-selinux contex

Register free to unlock 10 more sample questions

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 658 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon