Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 130 pages
Exam (elaborations)

CompTIA Linux+ XK0-004 Actual Exam Questions and Answers 2026 Guide

Document preview thumbnail
Preview 4 out of 130 pages

CompTIA Linux+ XK0-004 Actual Exam Questions and Answers 2026 Guide

Content preview

CompTIA Linux+ XK0-004 Actual Exam
Questions and Answers 2026 Guide
1. A server is almost out of free memory and is becom- A
ing unresponsive. Which of the following sets of com-
mands will BEST mitigate the issue?

A) fdisk, mkswap, swapon -a
B) Isof, Ivcreate, mdadm
C) free, fack, partprobe
D) df, du, rmmod

2. A Linux administrator retrieved a repository of files D
from a Git server using git clone. The administra-
tor wants to see if a configuration file was added to
the repository. Which of the following Git arguments
should be used to see the recent modifications?

A) pull
B) init
C) fetch
D) log

3. An administrator is tasked with increasing the size of C
the volume /dev/vg/lv to 20GB. Which of the following
BEST illustrates the steps the administrator should
take?

A) vgextend ""L20G /dev/vg/lv; resizelv /dev/vg/lv
B) mkfs ""L20G /dev/vg/lv; tune2fs /dev/vg/lv
C) Ivextend ""L20G /dev/vg/lv; resize2fs /dev/vg/lv
D) parted ""L20G /dev/vg/lv; remount /dev/vg/lv

4. A storage administrator in a virtualized environment C
has been told by a user that there is no space left
on the volume to which the user can write. However,


, CompTIA Linux+ XK0-004 Actual Exam
Questions and Answers 2026 Guide
a check reveals that there is 20GB of unused space.
Which of the following explains the discrepancy?

A) The drive space is overallocated
B) The drive is thick provision eager zeroed
C) The drive is thin provisioned
D) The drive is not formatted

5. An operator finds a user is having issues with opening B
certain files.
Which of the following commands would allow the
security administrator to list and check the SELinux
context?

A) ls -1
B) ls ""Z
C) ls ""D

6. In which of the following Linux GUI environments A
would the Konsole application MOST likely be found?

A) KDE
B) Cinnamon
C) MATE
D) Gnome
E) Unity

7. All users are reporting that they cannot connect to the C
SFTP server. The administrator runs a scan:

starting nmap 4.11 at 2018-06-16 EST
not shown: 1456 closed ports




, CompTIA Linux+ XK0-004 Actual Exam
Questions and Answers 2026 Guide
PORT STATE SERVICE
53/tcp open dns
80/tcp open http
957/tcp open unknown

MAC Address 08:00:00:00:00:00 ( computer systems )
nmap finished = 1 ip address ( 1 host up ) scanned in
1.497 seconds
You have mail in /var/spool/mail/root

Which of the following would allow the administrator
to fix the problem?

A) Allow SFTP connections on port 20 and 21 using
/etc/sysconfig/iptables.
B) Allow SFTP connections on port 25 using
/etc/sysconfig/iptables
C) Allow SFTP connections on port 22 using
/etc/sysconfig/iptables.
D) Allow SFTP connections on port 1456 using
/etc/sysconfig/iptables.

8. A junior administrator is configuring local name B
lookups for fully qualified domain names in an isolat-
ed environment. The administrator is given a checklist
and must accomplish the following tasks:

- Add localhost with loopback address.
- Add 192.168.192.12/24 to resolve to data-
base01.comptia.org

Given this scenario, which of the following steps
should the administrator perform to accomplish these


, CompTIA Linux+ XK0-004 Actual Exam
Questions and Answers 2026 Guide
tasks?

A) Open the /etc/nsswitch.conf file with a file edi-
tor and add the following lines: 127.0.0.1 localhost
192.168.192.12 database01.comptia.org
B) Open the /etc/hosts file with a file editor and add
the following lines: 127.0.0.1 localhost 192.168.192.12
database01.comptia.org
C) Open the /etc/network file with a file editor and add
the following lines: 127.0.0.1 localhost 192.168.192.12
database01.comptia.org
D) Open the /etc/dhcpd.conf file with a file edi-
tor and add the following lines: 127.0.0.1 localhost
192.168.192.12 database01.comptia.org

9. The development team has automated their software C
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 opera-
tions 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?

A) To ensure the build commits are also deployed to
the test environment
B) To enable notifications when builds are deployed to
the test environment
C) To streamline the deployment process for deploy-
ing builds into test environments
D) To ensure software builds in test are not accidental-
ly deployed to production

Document information

Uploaded on
May 15, 2026
Number of pages
130
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$19.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Schopenhauer
4.7
(9)
Sold
37
Followers
0
Items
3501
Last sold
1 week ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions