Linux Foundation LFCS Exam Questions & Answers (November 2026)
Linux Foundation Certified System Administrator exam questions with 14 free practice questions and explained answers. Updated November 17, 2026. ยท See all Linux Foundation exams
Answer 14 scenario questions on this page and see your score as you go. No sign-up needed.
Exam Details
- Exam Code
- LFCS
- Vendor
- Linux Foundation
- Questions
- 17-20 performance-based tasks
- Duration (minutes)
- 120
- Passing Score
- 67% or above
- Languages
- English, German, Japanese, Simplified Chinese
- Delivery
- Online, remotely proctored, performance-based tasks solved on the command line
- Question Types
- Single ChoiceMultiple Choice
- Official Page
- View Exam Page
Essential Commands
20% of the examThis topic covers command-line tasks for inspecting services, system performance, disk usage, and SSL certificates. Candidates must select commands that reveal relevant system information and help diagnose operational problems without making unnecessary changes.
A developer is preparing a change in a shared application repository. The project requires commits to use builds@example.net, but the developer uses a different email for other repositories and must not alter that global setting. No commit has been created yet, and the required identity should apply to future commits in this repository.
Which command should you run to configure the required commit email for this repository only?
Show Answer
Correct Answer
A
Option A is correct because the local setting applies to commits made in this repository without changing the developer's global configuration. Option B changes the email for all repositories used by that account. Option C changes the system-wide setting and usually requires elevated privileges. Option D sets an author for one commit rather than configuring future commits in this repository.
A report-processing service runs on a production host and usually starts during boot. After a scheduled reboot, monitoring reports that the service is unavailable, but other services on the host are healthy. The operations team needs the failure reason before deciding whether to change its configuration. You have a shell with permission to inspect the service, and you must not restart it while queued reports are being preserved.
Choose two commands that will best identify why the service failed during this boot without restarting it.
Select 2 answers, then check them.
Show Answer
Correct Answer
A, B
Option A shows the unit state and recent service messages, while Option B displays this boot's journal entries for the unit, which can reveal the startup failure. Option C reports whether the service is enabled, not why it failed. Option D lists dependencies but not the failure details. Option E shows current processes, and Option F would restart the service instead of investigating it.
A reporting server has become slow during a scheduled data import, but it is still responding to administrator commands. The team needs evidence of which processes are using the most CPU at that moment. The report must be captured in the terminal without opening an interactive display, and memory totals or system load averages alone will not identify the responsible processes.
Which command should the administrator run to capture one batch-mode process snapshot, ordered by CPU use?
Show Answer
Correct Answer
A
Option A is correct because it captures one batch-mode snapshot and sorts the process list by CPU use, which suits the diagnostic report. Option B sorts by memory use and does not include CPU use. Option C reports memory totals, not individual processes. Option D shows system load averages, not a process list.
Users and Groups
10% of the examThis topic covers local user and group accounts, environment profiles, resource limits, access control lists, and LDAP-based accounts. Candidates must be able to configure these features to meet account access and system requirements.
A finance team stores a sensitive report at /srv/finance/q4.csv. The file is owned by the finance service account, and its group and existing permissions must remain unchanged. Leah needs to read this file for an audit, but she must not receive access to other files in the directory. She already has permission to traverse the directory.
Which command should the administrator use to grant Leah read-only access to the existing file while leaving its owner, group, and access for other users unchanged?
Show Answer
Correct Answer
A
Option A is correct because it adds a read-only ACL for the named user on the existing file. Option B is not correct because it changes the mode and grants read access to all users. Option C sets a default ACL for future entries in the directory, not this file. Option D treats Leah as a group rather than a user.
A host uses local accounts for a deployment team. Sam already has an account and belongs to two supplementary groups that provide access to current tools. A new project requires a group named deploy-readers, which does not yet exist, and Sam must join it. The administrator must preserve Sam's existing group memberships and avoid changing his primary group.
Choose two commands the administrator should run to create the missing group and add Sam to it without removing his existing supplementary groups.
Select 2 answers, then check them.
Show Answer
Correct Answer
A, C
Options A and C are correct because the first creates the missing group and the second appends it to Sam's supplementary groups. Option B is not correct because `-G` without `-a` replaces Sam's existing supplementary-group list. Option D removes Sam from the group. Option E renames a group, while Option F attempts to create an account for an existing user.
Networking
25% of the examThis topic covers configuring and troubleshooting Linux network connections, name resolution, time synchronization, and remote access. Candidates must also be able to manage packet filtering, routing, network devices, and traffic distribution in line with service requirements.
A server uses NetworkManager and has an active connection profile named uplink0 on enp1s0. Its current IPv4 settings come from DHCP. During the next maintenance window, the team will assign address 192.0.2.40/24, gateway 192.0.2.1, and DNS servers 192.0.2.53 and 192.0.2.54. You must prepare the persistent profile now without changing the active link or interrupting remote administration.
Which command changes the NetworkManager profile as required without applying the change immediately?
Show Answer
Correct Answer
A
Option A is correct because it stores the static address, gateway, and DNS servers in the existing profile without activating it. Option B changes only the live interface and is not persistent. Option C keeps automatic addressing enabled, contrary to the requirement. Option D adds only a runtime route and does not configure the profile address or DNS.
A Linux router has a WAN interface named enp1s0 and a LAN bridge named br-lan. An internal server at 10.20.0.15 listens on TCP port 8443, and its default gateway is this router. External clients must reach that service through the router's public TCP port 443. IPv4 forwarding is enabled. The existing forward chain drops new WAN connections but permits established traffic and LAN-originated connections.
Choose two. Which two nftables rules are needed to publish the internal HTTPS service through the router?
Select 2 answers, then check them.
Show Answer
Correct Answer
A, C
Options A and C are correct because the prerouting rule translates the public destination to port 8443, and the forward rule permits the translated new connection to the internal server. Option B targets traffic for the router itself. Options D and F use SNAT or DNAT in an unsuitable way. Option E matches the original port after translation, when the forwarded packet uses port 8443.
A remote Linux server uses OpenSSH, and its global configuration permits both password and public-key authentication. The operations team requires the account maint to authenticate only with its installed public key, while other non-root accounts must retain their current password access. Root login policy must remain unchanged. You have a maintenance session available and can validate the configuration before reloading the server.
Which configuration change best meets the access requirement?
Show Answer
Correct Answer
A
Option A is correct because the user-specific Match block disables password authentication for maint while retaining public-key access. Option B also blocks passwords for every user, exceeding the stated scope. Option C leaves password authentication enabled for maint. Option D changes root access and does not affect the maintenance account's authentication methods.
Operations Deployment
25% of the examThis topic covers administering software, processes, kernel settings, virtual machines, containers, and SELinux controls. Candidates must apply changes that meet operational requirements and diagnose or prevent common deployment failures.
A Rocky Linux 9 application host uses the standard systemd boot process. A memory-sensitive service requires `vm.swappiness` to be 15 immediately, and the operations team requires the same value after every reboot. The change must use the supported sysctl mechanism and must not alter unrelated kernel settings.
Which approach meets both requirements?
Show Answer
Correct Answer
A
Option A is correct because `sysctl -w` applies the value immediately, while the file in `/etc/sysctl.d/` preserves it for boot, and `sysctl --system` applies the file now. Option B is not correct because its change is runtime-only. Option C does not set a kernel parameter. Option D changes a runtime interface and does not preserve the value across reboot.
A Rocky Linux 9 application server has working access to its configured DNF repositories, and repository metadata is current. A deployment requires the `rsync` package, but the administrator must also confirm that its installed files match the package database. The team will not accept a query that only confirms package presence as validation.
Choose two actions that install the package from the configured repositories and validate its installed files.
Select 2 answers, then check them.
Show Answer
Correct Answer
A, D
Options A and D are correct because `dnf install rsync` installs from the configured repositories, and `rpm -V rsync` checks installed files against the RPM database. Option B uses a package manager not used on this Rocky Linux host. Option C checks for updates but does not install the package. Option E queries package presence, not file integrity. Option F removes the package.
An Apache server on Rocky Linux 9 uses SELinux in enforcing mode and serves a new document root at `/srv/site`. File permissions allow the Apache account to read the files, and the failure has been diagnosed as an incorrect SELinux file type. The label must remain correct if the filesystem is relabeled later.
Which action correctly allows Apache to serve the files while preserving the SELinux policy change across relabeling?
Show Answer
Correct Answer
B
Option B is correct because the persistent file-context rule assigns the appropriate type throughout `/srv/site`, and `restorecon` applies it. Option A is not correct because `chcon` does not record a policy rule that survives relabeling. Option C disables enforcement instead of fixing the denial. Option D affects home directories, not this document root.
Storage
20% of the examCandidates configure and maintain storage for Linux systems, including LVM, filesystems, swap, and remote storage. They must select suitable mount and automount settings, apply storage changes safely, and account for availability requirements.
An application stores archived reports on the ext4 filesystem mounted at /srv/archive. The filesystem is on /dev/vgdata/archive, an 8 GiB logical volume in a volume group with 12 GiB free. The application must remain available during the change, and the administrator wants the filesystem to use 6 GiB of additional capacity.
Which command should the administrator use to add 6 GiB to the logical volume and grow its filesystem?
Show Answer
Correct Answer
A
Option A is correct because the volume group has enough free space, and lvextend adds 6 GiB while -r grows the ext4 filesystem. Option B sets the volume to 6 GiB rather than adding 6 GiB, risking a shrink. Option C would overwrite the logical volume with physical volume metadata. Option D cannot grow the filesystem beyond its current logical volume size.
A server has no dedicated swap partition, and its administrator has created a 4 GiB file at /swapfile with restrictive permissions. The file has not yet been initialized for swap. The change window ends before the next reboot, and the administrator needs the system to recognize the file as swap when it starts again.
Which two actions correctly initialize the existing file as swap and configure it to be enabled on later boots? Choose two.
Select 2 answers, then check them.
Show Answer
Correct Answer
A, C
Options A and C are correct because mkswap writes swap metadata, and the valid fstab entry makes the file available as swap during boot. Option B activates swap only for the current session and does not persist it. Option D uses an invalid filesystem type and mount point for a swap entry. Option E formats the file as ext4 instead of initializing swap.
A reporting server uses the NFS export nas:/exports/reports at /mnt/reports, but the file server is sometimes offline during scheduled maintenance. Applications need the share mounted when they first access the directory. The Linux host uses systemd, and boot must continue if the NFS server is unavailable.
Which /etc/fstab entry best meets the requirement for an NFS share that should mount on access without delaying boot when the server is unavailable?
Show Answer
Correct Answer
A
Option A is correct because x-systemd.automount triggers the NFS mount when the path is accessed, while nofail avoids making boot depend on the share being available. Option B requests a regular mount and can delay boot. Option C prevents automatic mounting but does not set up access-triggered mounting. Option D limits device activation time but does not configure automount behavior.
Continue Your LFCS Preparation
You have seen 14 questions from a full set of 260. Prepare with the LFCS dumps PDF and the Web-Based Practice Test.
- Compatible with All Devices
- Printable Format
- No Download Limits
Practice Test
- Check your timing and weak areas
- No Practice Limits
- Regularly Updated
- 100% Money-Back Guarantee
- 90 Days Free Updates
- Instant Access
Frequently Asked Questions
Which LFCS topic is hardest to handle under pressure?
Networking and Operations Deployment each account for 25% of the exam, and both require decisions at the command line. You may need to troubleshoot name resolution or routing, manage packet filtering, or diagnose a deployment issue involving processes, containers, or SELinux. The challenge is choosing a safe, relevant change rather than applying commands mechanically. Practise explaining what each command will alter before you run it.
How demanding is the LFCS time limit for its practical tasks?
The exam gives you 120 minutes for 17 to 20 performance-based tasks, so both task completion and careful verification matter. A single storage or network change can require several steps, and an incorrect mount or access setting may affect later work. Work methodically, but avoid spending too long perfecting one task. In practice, set a timer and reserve time to check that requested settings took effect.
Why can studying Linux theory feel different from preparing for the LFCS?
The LFCS is delivered online with remote proctoring, and its tasks are solved on the command line. Knowing what LVM, ACLs, or time synchronization mean is not enough if you cannot configure or inspect them in a working system. The Exam4Success PDF can support topic review when you are away from a lab, but pair that reading with hands-on command-line practice. Recreate a task after reading about it.
What preparation mistake can cause trouble on Essential Commands tasks?
Candidates can focus on making a system change when the task is asking them to inspect or diagnose it. Essential Commands covers services, performance, disk usage, and SSL certificates, and it expects you to identify useful information without unnecessary changes. That distinction is especially important when time is limited. The Exam4Success Practice Test can help you review weak areas and practise pacing. For each diagnostic task, first state what evidence you need.
What practical capabilities does the LFCS assess for Linux administrators?
The LFCS assesses practical administration across users and groups, networking, operations deployment, storage, and essential command-line work. Tasks can involve configuring accounts and access controls, managing software and processes, and maintaining filesystems, LVM, swap, or remote storage. It is relevant to administrators who want to demonstrate hands-on Linux skills in a performance-based exam. Compare the topic outline with your current responsibilities and identify one area where you need more command-line practice.
Can LFCS preparation help me build confidence with operational work?
Preparation can give you structured practice with tasks such as troubleshooting a Linux connection, applying a mount setting, or diagnosing a deployment failure. The exam covers systems administration areas that require careful action and verification, including SELinux controls and storage availability. A credential alone does not establish readiness for every workplace environment, so treat the tasks as a way to identify skills to strengthen. Practise on a system where you can safely repeat changes.
How can I judge whether I am ready to sit the LFCS?
Readiness is best judged by whether you can complete representative tasks at the command line without relying on step-by-step instructions. Check that you can work across the five topic areas, including network configuration, local accounts, LVM, containers, and service inspection. The official passing score is 67% or above, but do not use that figure as a practice guarantee. Time a mixed set of tasks, then revisit the topics where you needed help.
What should I study first if I have limited preparation time?
Begin with a brief assessment of all five areas, then prioritise Networking and Operations Deployment, which each represent 25% of the exam. Do not neglect Storage at 20%, since safe filesystem, LVM, swap, and remote storage work needs practice. The Exam4Success PDF can help organise review, while its Practice Test can show where your timing or topic knowledge needs work. Make a short list of tasks you cannot yet perform unaided.
What should I expect from the LFCS exam format and language options?
Expect 17 to 20 performance-based tasks completed on the command line during a 120-minute online, remotely proctored exam. The available languages are English, German, Japanese, and Simplified Chinese. Since the format requires you to act on a system, practise entering commands and verifying results in the language you plan to use, where applicable. Before scheduling, review the current exam arrangements and make sure your practice sessions reflect the hands-on format.
Exam4Success is an independent exam preparation provider and is not affiliated with or endorsed by Linux Foundation.