Linux Foundation Certified System Administrator Free Practice Questions
This practice bank exercises foundational knowledge required for the Linux Foundation Certified System Administrator (LFCS) exam. Topics include system identification, user and group management, storage management, system initialization, file transfer, privilege escalation, the Filesystem Hierarchy Standard, logging, scripting, and file permissions. Each question tests practical command usage and conceptual understanding of Linux administration. Use this guide to reinforce key commands, configuration files, and system behaviors. The deck covers essential commands like hostname, ls, pwd, chmod, sudo, scp, and concepts like UID ranges, ext4 filesystem, runlevels, systemd, /etc/fstab, /var, and bash. Mastery of these topics is critical for success on the LFCS exam.
What this LFCS practice set measures
This is an analysis of the practice bank, not a claim about the vendor's live exam blueprint. Use it to identify the knowledge, judgment, and recall patterns exercised here, then verify your coverage against the current official exam guide.
System Basics and Identification
This section covers fundamental commands and concepts for identifying and navigating the system. The hostname command displays the current hostname, while hostnamectl is used for persistent changes on systemd systems. The ls command lists directory contents with permissions and ownership, and pwd shows the current working directory. The default shell for new users is bash, as defined in /etc/default/useradd or /etc/passwd. Understanding these basics is essential for efficient system administration.
- Use hostname to display system hostname; hostnamectl for persistent changes.
- ls -l provides detailed file metadata including permissions and ownership.
- pwd outputs the full path of the current directory.
- bash is the default shell for most Linux distributions.
User and Permission Management
Effective user and permission management is critical for system security. Regular users have UIDs from 1000 to 60000, while system accounts use lower UIDs. The sudo command allows privileged command execution as defined in /etc/sudoers. The chmod command modifies file access permissions using symbolic or numeric modes. Understanding UID ranges and permission commands is fundamental for user administration.
- Regular users typically have UIDs in the range 1000-60000.
- sudo executes commands with privileges of another user, usually root.
- chmod changes file permissions; common modes: chmod 755 or chmod u+x.
- The /etc/sudoers file controls sudo access; edit with visudo.
Storage and File System Management
Storage management involves understanding file systems and mount points. ext4 is the default journaling filesystem for modern Linux installations. The /etc/fstab file defines static mount points for partitions at boot. The /var directory stores variable data like logs and spools. The scp command securely transfers files between hosts over SSH. These components are key to maintaining reliable storage.
- ext4 is the default filesystem for modern Linux; supports extents and journaling.
- /etc/fstab contains entries for automatic mounting of filesystems.
- /var holds variable data: logs (/var/log), mail spool, caches.
- scp uses SSH for encrypted file transfer between hosts.
System Initialization and Logging
System initialization and logging are crucial for boot and troubleshooting. In SysV init, runlevel 3 represents multi-user mode with networking. systemd is the modern init system that manages services and dependencies. Authentication events like SSH logins are recorded in /var/log/auth.log on Debian-based systems. The bash -n command checks script syntax without execution. These tools help administrators control startup and diagnose issues.
- SysV runlevel 3: multi-user with networking (command-line interface).
- systemd uses units to manage services; use systemctl to control them.
- /var/log/auth.log records authentication events (Debian/Ubuntu).
- bash -n performs a syntax check without running the script.
Practice Linux Foundation Certified System Administrator with real flashcards
Read the prompt, commit to an answer, then flip the card. Move through the deck at your own pace and repeat any topic that does not come back quickly.
Card 1 of 20
1 reviewed this session
Static practice bank
Start the 15-question diagnostic
The complete question bank is embedded in this pre-rendered page. There is no database request or second content download when you begin.
Which command is used to display the current system hostname?
Show hint
System Identification
Study workflow
Turn one LFCS attempt into a study plan
- 1
Check System Information
Use hostname to display the hostname. For persistent changes, use hostnamectl set-hostname. Use ls -la / to list root directory with details. Use pwd to confirm your current location. Use uname -a for kernel details. This step establishes your system's identity.
- 2
Manage Users and Groups
Add users with useradd; set passwords with passwd. Check UID range: default is 1000-60000 for regular users. Use sudo -l to list commands you can execute with sudo. Modify permissions with chmod, e.g., chmod 755 file. Manage groups with groupadd and usermod -G.
- 3
Work with File Permissions
Use chmod to change permissions: symbolic (chmod u+x file) or numeric (chmod 644 file). Use chown to change owner. Use ls -l to view current permissions. Understand rwx for owner, group, others. For directories, ensure execute permission to access contents.
- 4
Configure Storage and Mounts
Edit /etc/fstab to add mount points for partitions. Use mount -a to mount all entries. Use df -h to check disk usage. For file transfer, use scp source user@host:destination. Ensure the filesystem type (e.g., ext4) is correct in fstab.
- 5
Analyze Logs and Services
Check authentication logs: less /var/log/auth.log. Use systemctl to manage services: systemctl status service, systemctl enable service. For script debugging, use bash -n script.sh to check syntax. Use journalctl for systemd logs if available.
FAQ
Questions about this LFCS practice page
Clear boundaries on what the bank covers, how to use it, and where official vendor information still matters.
What is the difference between hostname and hostnamectl?+
hostname displays or sets the hostname temporarily; the change is lost after reboot. hostnamectl on systemd systems sets the hostname persistently and also manages pretty hostnames. Always use hostnamectl for permanent changes on modern distributions.
What UID range should I use for new regular users in LFCS?+
In LFCS environments, regular users typically start at UID 1000 and extend up to 60000. System accounts use UIDs 0-99. When creating users with useradd, the system automatically assigns the next available UID in the 1000-60000 range.
How does systemd handle runlevels compared to SysV init?+
SysV init uses numbered runlevels (e.g., 3 for multi-user mode). systemd uses targets, such as multi-user.target or graphical.target, which are symbolic links to runlevels. Use systemctl isolate multi-user.target to switch to runlevel 3 equivalent.
What is the purpose of /etc/fstab and how do I edit it safely?+
/etc/fstab defines static mount points for filesystems. It is read at boot to mount partitions. Always back up the file before editing, and use mount -a to test changes without rebooting. Incorrect entries can prevent the system from booting.
Which log file records failed login attempts on Debian-based systems?+
Failed login attempts are recorded in /var/log/auth.log on Debian-based systems. On Red Hat-based systems, similar information is in /var/log/secure. Use grep to search for 'Failed password' to find unsuccessful attempts.
Build the next review session
Browse another free bank or use the study strategy guide to turn your misses into spaced review.
