Skip to content

Linux+ (v6) Practice Questions

Prepare for XK0-004 with more than an answer.

218 questions in the full set19 sample questionsUpdated Jul 16, 2026

Unlock the full exam and previous versions

  • v1CompTIA Linux+ V8 161 questions Locked
  • XK0-004Legacy CompTIA Linux+ (v6) 218 questions Current
  • XK0-005Legacy CompTIA Linux+ (v7) 279 questions Locked
Exam fee
$358 USD
Level
Intermediate
Valid for
3 years
Domains covered on the exam 5
  1. Hardware and System Configuration21%
  2. Systems Operation and Maintenance26%
  3. Security19%
  4. Linux Troubleshooting and Diagnostics20%
  5. Automation and Scripting14%
  1. 1

    An administrator is analyzing a Linux server which was recently hacked.
    Which of the following will the administrator use to find all unsuccessful login attempts?

    Show answer details

    Correct answer: C

    C

  2. 2

    A junior Linux administrator is optimizing a system in which an application needs to take priority 0 when running the process. The administrator runs the ps command and receives the following output:

    Given this scenario, which of the following steps will address this issue?

    Question exhibit
    Show answer details

    Correct answer: A

    A

  3. 3

    Which of the following will provide a list ofall flash, external, internal, and SSD drives?

    Show answer details
  4. 4

    A systems administrator configured a new kernel module, but it stopped working after reboot.

    Which of the following will allow the systems administrator to check for module problems during server startup?

    Show answer details

    Correct answer: C

    Reference: https://access.redhat.eom/documentation/en-us/red hat enterprise linux/6/html/deployment guide/sec-displaying information about a module

  5. 5

    A junior Linux administrator needs to access production servers using a secure SSH protocol.

    Which of the following files should contain the public key to gain remote access to the server?

    Show answer details
  6. 6

    Two specific users need access to a directory owned by root where backups are located.

    Which of the following commands would BEST ensure the specified users can access the backup files?

    Show answer details

    Correct answer: D

    D

  7. 7

    A Linux administrator needs to schedule a cron job to run at 1:15 p.m. every Friday to reportthe amount offree disk space on the system and to send the output to a file named “freespace.

    Which of the following would meet this requirement?

    Show answer details

    Correct answer: A

    A

  8. 8

    The lead Linux admin has added a disk, /dev/sdd, to a VM that is running out of disk space. Place the following steps in the correct order from first (1)to last (4) to add the disk to the existing LVM

    Question exhibit
    • Option exhibit
    Show answer details
  9. 9

    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?

    Show answer details

    Correct answer: A

    A

Create an account to continue.