2026/2027: 100 Practice Questions with
Answers & Explanations for LPIC-1,
CompTIA Linux+, RHCSA Certification
Prep
Description:
Master Linux fundamentals with this comprehensive 2026/2027 examination test bank
featuring 100 practice questions covering file systems, command-line operations, user and
permission management, shell scripting, system administration, networking, package
management, hardware, and security. Each question includes detailed explanations to
reinforce learning and exam preparation. Perfect for university students, IT professionals, and
certification candidates studying for LPIC-1, CompTIA Linux+, RHCSA, and Ubuntu
Certified Professional exams. Updated for 2026/2027 academic standards with current best
practices.
Download now and ace your Linux certification exam!
, Linux Exam Questions 2026/2027
Total Questions: 100 | Sections: 10 | Academic Level: University/Professional
SECTION A: FILE SYSTEMS AND DIRECTORY STRUCTURE
Question 1
Which directory must maintain read and write access capabilities when configured as a separate
file system?
A. /boot
B. /var
C. /etc
D. /bin
Answer: B. /var
Explanation: The /var directory contains variable data files including logs, spool files, and
temporary email content that require continuous write operations. If /var resides on its own
dedicated file system, it must be mounted with read and write permissions to ensure proper
system functionality. The /boot directory typically requires read access only, while /etc and /bin
contain static configuration and binary files that are primarily read during normal operation.
Question 2
What information is stored in the /etc/passwd file? (Select three.)
A. The numerical user ID
B. The user's encrypted password hash
C. The username
D. The user's default shell
E. The user's home directory location
F. The user's group membership list
Answer: A, C, D
,Explanation: The /etc/passwd file stores essential user account information including the
username, numerical user ID (UID), and the default shell for each user. While modern systems
store password hashes in /etc/shadow for security, /etc/passwd historically contained encrypted
passwords but now uses an "x" placeholder. The home directory location is also stored in
/etc/passwd. However, group membership information is maintained in /etc/group, not
/etc/passwd.
Question 3
Which directory contains information, documentation, and example configuration files for
installed software packages?
A. /usr/share/doc/
B. /usr/local/man/
C. /etc/conf.d/
D. /var/cache/
Answer: A. /usr/share/doc/
Explanation: The /usr/share/doc/ directory serves as the primary repository for software
documentation, including README files, license information, changelogs, and example
configuration templates. This standardized location allows users and administrators to access
package documentation consistently across different Linux distributions. Other directories serve
different purposes: /usr/local/man/ contains manual pages, /etc/conf.d/ holds configuration files,
and /var/cache/ stores cached application data.
Question 4
What can be found in the /proc/ directory?
A. Device files for hardware components
B. One directory per running process
C. User configuration files
D. Temporary system files
Answer: B. One directory per running process
, Explanation: The /proc/ directory is a virtual file system that provides a process-centric view of
the system state. Each running process has a corresponding subdirectory named after its process
ID (PID), containing information about the process's memory mapping, open file descriptors, and
execution status. This pseudo-file system also includes system-wide information through files
like /proc/cpuinfo and /proc/meminfo, making it an essential resource for system monitoring and
debugging.
Question 5
Which permissions are typically set on the /tmp/ directory?
A. rwxr-xr-x
B. rwxrwxrwx
C. rwxrwxrwt
D. r--r--r--
Answer: C. rwxrwxrwt
Explanation: The /tmp/ directory uses the sticky bit (represented by 't' at the end of the
permission string) to allow all users to create and delete their own files while preventing them
from deleting files owned by other users. This configuration provides rwxrwxrwt permissions,
enabling read, write, and execute access for the owner, group, and others, with the special sticky
bit that restricts file deletion to file owners only. This security measure is essential for shared
temporary storage in multi-user environments.
Question 6
Which device file represents a hard disk partition?
A. /dev/sda
B. /dev/sda2
C. /dev/hdd
D. /dev/hda1
Answer: B. /dev/sda2