Comprehensive Practice Examination
2026 Original Questions and Answers
with Verified Rationales
1. Which command displays the current RHEL version and
related operating-system information?
A. uname -p
B. cat /etc/redhat-release
C. lsmod
D. mount -v
Rationale: The /etc/redhat-release file provides the installed
Red Hat Enterprise Linux release identification. uname
primarily reports kernel information rather than the complete
RHEL release.
2. Which command is most appropriate for displaying the
running kernel version?
A. rpm -qa
B. hostnamectl
C. uname -r
D. systemctl version
,Rationale: uname -r displays the release identifier of the
currently running kernel.
3. Which command displays detailed information about the
operating system, kernel, and architecture?
A. id
B. hostnamectl
C. chmod
D. fdisk
Rationale: hostnamectl can display host information including
the operating system, kernel, architecture, and hostname.
4. Which command is used to determine the absolute path
of an executable found in the user's PATH?
A. locate
B. find
C. which
D. whereis
Rationale: which identifies the executable that would be
invoked from the current PATH. whereis can locate binaries,
source, and manual pages, while find searches filesystem
paths.
5. Which command provides a recursive listing of files and
directories?
,A. pwd
B. cd
C. ls -R
D. tree -p
Rationale: The -R option causes ls to recursively display the
contents of subdirectories.
6. What is the primary purpose of the sudo command?
A. To change the kernel
B. To execute a command with delegated administrative
privileges
C. To create a filesystem
D. To restart the network
Rationale: sudo permits authorized users to execute specific
commands with elevated privileges according to sudo policy.
7. Which command changes the current working directory?
A. pwd
B. cd
C. mv
D. push
Rationale: cd changes the shell's current working directory.
8. What does the pwd command display?
, A. Current process ID
B. Absolute path of the current working directory
C. Password expiration
D. Package working directory
Rationale: pwd means "print working directory" and reports
the current directory's absolute path.
9. Which command creates an empty file if the specified file
does not already exist?
A. mkdir
B. cp
C. touch
D. mkfile
Rationale: touch creates an empty file when necessary and
updates timestamps when the file already exists.
10. Which command is most appropriate for copying a
directory and its contents?
A. cp directory destination
B. cp -r directory destination
C. mv -r directory destination
D. copy --recursive directory
Rationale: The recursive option allows cp to copy directories
and their contents.