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
Exam (elaborations)

2026 LPIC-2 Linux Engineer Practice Examination: Hard-Level Multiple-Choice Questions with Detailed Rationales

Rating
-
Sold
-
Pages
46
Grade
A+
Uploaded on
16-07-2026
Written in
2025/2026

Prepare for the 2026 LPIC-2 Linux Engineer certification exam with this comprehensive practice examination featuring hard-level multiple-choice questions and detailed rationales. Covers advanced Linux administration, system configuration, networking, security, storage management, kernel modules, boot processes, virtualization, web services, email services, file sharing, troubleshooting, automation, and enterprise Linux operations aligned with LPIC-2 exam objectives. Designed to strengthen practical Linux engineering skills and improve exam readiness for Linux administrators, system engineers, IT professionals, and certification candidates. Ideal for students and professionals seeking to validate advanced Linux administration knowledge and prepare for the LPIC-2 certification examination.

Show more Read less
Institution
Red Hat Certified System Administrator
Course
Red Hat Certified System Administrator

Content preview

Red Hat Certified System Administrator
(RHCSA) Practice Exam 2026 Red Hat
Certified System Administrator (RHCSA)
Practice Examination: Hard-Level Multiple
Choice Questions with Detailed Rationales
ination.

1. A Linux administrator wants to permanently change the
system hostname on a RHEL 9 server. Which command
should be used?
A. hostname server01.example.com
B. hostnamectl set-hostname server01.example.com
C. sysctl hostname=server01.example.com
D. nmcli hostname server01.example.com
Answer: B
Rationale: hostnamectl set-hostname modifies the persistent
hostname managed by systemd. The hostname command
changes it only temporarily until reboot. sysctl and nmcli are
not intended for permanent hostname management.


2. Which command displays all active systemd units
currently running?

,A. systemctl list-targets
B. systemctl list-unit-files
C. systemctl list-units
D. systemctl status all
Answer: C
Rationale: systemctl list-units displays currently loaded and
active units. list-unit-files shows installed unit files regardless
of current state.


3. A file has permissions rwxr-s---. Which numeric
permission represents this mode?
A. 770
B. 2750
C. 4750
D. 6750
Answer: B
Rationale: The setgid bit equals 2 in the special permissions
digit. Owner permissions are 7, group permissions are 5 with
setgid, and others have 0, resulting in 2750.


4. Which command correctly creates an XFS filesystem on
/dev/sdb1?
A. mkfs.ext4 /dev/sdb1

,B. mkfs -t ext4 /dev/sdb1
C. mkfs.xfs /dev/sdb1
D. xfscreate /dev/sdb1
Answer: C
Rationale: mkfs.xfs is the correct utility for creating an XFS
filesystem, which is the default filesystem in Red Hat
Enterprise Linux.


5. Which command resizes an XFS filesystem after
expanding the logical volume?
A. resize2fs
B. xfsresize
C. xfs_growfs
D. growfs
Answer: C
Rationale: XFS supports only online expansion using
xfs_growfs. resize2fs applies only to ext filesystems.


6. Which SELinux command restores default file security
contexts based on policy?
A. semanage restore
B. chcon --default
C. restorecon

, D. setenforce
Answer: C
Rationale: restorecon applies the default SELinux labels
defined by the policy. chcon changes labels manually and
does not survive relabeling.


7. Which SELinux mode logs policy violations without
enforcing them?
A. Disabled
B. Enforcing
C. Permissive
D. Relaxed
Answer: C
Rationale: Permissive mode records AVC denials while
allowing operations to proceed. This mode is commonly used
for troubleshooting.


8. Which command displays the UUIDs of block devices?
A. ls
B. fdisk -l
C. mount
D. blkid
Answer: D

Written for

Institution
Red Hat Certified System Administrator
Course
Red Hat Certified System Administrator

Document information

Uploaded on
July 16, 2026
Number of pages
46
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$27.49
Get access to the full document:

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

Get to know the seller

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.
topseller8 Teachme2-tutor
View profile
Follow You need to be logged in order to follow users or courses
Sold
28
Member since
10 months
Number of followers
0
Documents
1833
Last sold
1 day ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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