LFCS Certification Cheat Sheet 2026
The 30 highest-yield LFCS Certification facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
20 questions
120 min time limit
67% to pass
- In the context of `cron`, what does the special string `@reboot` mean in a crontab entry? → The command runs once at system startup
- Which command shows which installed RPM packages have files that have been modified since installation? → rpm -Va
- When using `zypper` on SUSE/openSUSE, which command searches for packages by name? → zypper search
- A logical volume was accidentally removed. Its VG metadata backup exists. Which command attempts recovery? → vgcfgrestore -f /etc/lvm/backup/vg0 vg0
- Which input must be given to ifconfig in order to turn on a network interface that was previously inactive? → up
- A user's account is locked using 'passwd -l username'. Which character appears at the start of the password hash in /etc/shadow to indicate this? → !
- Which command creates a thin pool named tp0 of 20G within vg0? → lvcreate -L 20G -T vg0/tp0
- What does the 'Listen' directive in /etc/apache2/ports.conf or httpd.conf control? → Which IP addresses and ports Apache binds to
- Which command shows the overall boot time broken down into firmware, loader, kernel, and userspace phases? → systemd-analyze time
- In which file do you persistently add custom kernel parameters on systemd-based systems using GRUB 2? → /etc/default/grub
- In nftables, what command adds a new table named 'mytable' with the inet family? → nft add table inet mytable
- What does `dnf module enable :` do? → Activates a specific module stream so its packages become available for installation
- In a bash script, how do you correctly access the third positional argument passed to the script? → $3
- Which cron time field position controls the day of the week? → The 5th field (0=Sunday through 6=Saturday)
- What happens to background jobs when you close a terminal without using `nohup` or `disown`? → They receive SIGHUP and typically terminate
- A timer unit `backup.timer` is set to activate `backup.service`. Where must the timer unit be enabled for it to fire at boot? → The timer unit itself must be enabled and started with systemctl enable --now backup.timer
- A user reports they cannot run sudo. After verifying their account exists, what should you check first? → Whether they are a member of the sudo or wheel group
- Which xinetd/inetd replacement is commonly used in modern Linux to manage on-demand TCP services? → systemd socket activation
- A Samba share should be writable by members of the 'staff' group. Which smb.conf directive sets this group? → write list = @staff
- Which of the following is a key advantage of using a high-level package manager like `dnf` or `apt` compared to a low-level tool like `rpm` or `dpkg`? → They automatically resolve and install required software dependencies from repositories.
- How do you stream new journal entries in real time, similar to `tail -f`? → journalctl -f
- A process runs as UID 1001. A file has owner UID 1001 and permissions '---rwxrwx'. Can the owner read the file? → No — the kernel checks only the owner bits, which are '---'
- What does the parameter expansion `${#myvar}` return in bash? → The length in characters of the string stored in myvar
- After chrooting into /sysroot to reset the root password on an SELinux system, which command ensures file contexts are relabeled on next boot? → touch /.autorelabel
- Which dpkg command extracts the contents of a .deb file without installing it? → dpkg-deb -x package.deb /target
- Where should application-specific logrotate configuration files be placed? → /etc/logrotate.d/
- A user 'alice' has UID 1005. After deleting her account with userdel, a new user 'bob' is created and happens to receive UID 1005. What risk does this create? → Bob will own files previously owned by Alice that were not reassigned
- A user's umask is 027. What permissions will a newly created regular file have? → 640
- Which rsyslog rule forwards all facility/severity combinations to a remote UDP syslog server at 192.168.1.1? → *.* @192.168.1.1
- What does `systemctl isolate rescue.target` do? → Immediately switches to rescue.target, stopping all units not required by it
Turn these facts into recall:
Was this helpful?