(2025–2026 Edition) Newest Exam 2025-2026
With complete Questions and Correct
Answers|Brand new version.
1. Which command is used to manage SELinux Boolean values persistently?
A. semanage boolean
B. setsebool -P
C. getenforce
D. sestatus
The -P option in setsebool ensures changes persist across reboots.
2. Which file defines the default target in systemd?
A. /etc/systemd/system/default.target
B. /etc/systemd/system/default.target (symlink)
C. /usr/lib/systemd/system/default.target
D. /etc/default/systemd
The default target is a symlink in /etc/systemd/system/ pointing to the real
target.
3. How do you check which SELinux context a file has?
A. ls -l
B. cat /etc/selinux/config
C. ls -Z
D. sestatus -v
ls -Z lists SELinux security contexts of files and directories.
4. To create a new logical volume of 10GB in volume group vgdata named
lvbackup, you run:
,A. lvadd -n lvbackup -L 10G vgdata
B. lvcreate -n lvbackup -L 10G vgdata
C. mkfs -t ext4 /dev/vgdata/lvbackup
D. vgcreate -n lvbackup -L 10G vgdata
lvcreate is used to create logical volumes from a volume group.
5. Which command displays all enabled systemd services?
A. systemctl --list-units
B. systemctl --type=service
C. systemctl list-unit-files --state=enabled
D. systemctl list-services
list-unit-files --state=enabled shows all enabled services, not just active ones.
6. To view SELinux enforcing mode, use:
A. getenforce
B. setenforce
C. sestatus
D. selstatus
sestatus gives detailed SELinux mode and policy info.
7. To make a user’s password expire immediately, forcing a change at next
login:
A. passwd -d username
B. chage -d 0 username
C. passwd -e username
D. usermod -f 0 username
chage -d 0 sets the last password change date to epoch (forcing reset).
8. Which tool configures network interfaces persistently in RHEL 9?
A. ifconfig
B. nmcli
C. nmcli
, D. ip
nmcli is used for persistent and runtime configuration under NetworkManager.
9. Which directive defines the document root in Apache configuration?
A. DirectoryRoot
B. DocumentRoot
C. RootDocument
D. ServerRoot
DocumentRoot specifies the web content directory.
10. Which command adds a permanent firewall rule in RHEL 9?
A. firewall-cmd --add-service=http
B. firewall-cmd --add-service=http --permanent
C. iptables -A INPUT -p tcp --dport 80 -j ACCEPT
D. firewall-offline-cmd
The --permanent flag ensures rules persist after reload.
11. Which command regenerates initramfs images safely?
A. grub2-mkconfig
B. dracut -f
C. update-initramfs
D. mkinitrd
dracut -f recreates the initramfs on RHEL-based systems.
12. To schedule a job to run once at 5 PM today, use:
A. cron
B. systemd-timer
C. at 17:00
D. crontab -e
at schedules one-time tasks.