Free · No account needed · No credit card

Linux Foundation Certified System Administrator LFCS Practice Test

513 questions with instant explanations, domain breakdown, and wrong-answer analysis. Built for the real exam.

Instant feedback after each answer
Full explanations included
Domain score breakdown
Real exam: 120 min

Sample questions with explanations

This is exactly what you see during practice — question, options, and a full explanation after you answer.

Q1User and Group Managementmedium
Full explanation →

A developer was removed from the 'developers' group but still needs to run commands that require membership in that group. The user has logged out and back in, but the issue persists. What is the most likely cause?

The user did not explicitly start a new login shell after group removal.Correct
BThe user's primary group is different from the 'developers' group.
CThe user is using 'newgrp developers' but is no longer a member.
DThe 'id' command shows the old group because the user's shell is still running.

When a user is removed from a supplementary group, the group membership is cached in the user's current login session. Even after logging out and back in, if the user does not explicitly start a new login shell (e.g., by using `su -` or `login`), the old group membership persists…Read full explanation

Q2User and Group Managementeasy
Full explanation →

A system administrator needs to create a user 'john' with a home directory in /data/users and an expiry date of 2025-12-31. Which command accomplishes this?

Auseradd -d /data/users -c 2025-12-31 john
Badduser --home /data/users --expiredate 2025-12-31 john
useradd -d /data/users -e 2025-12-31 johnCorrect
Duseradd -m -e 2025-12-31 john

Option C is correct because the `useradd` command with `-d /data/users` sets the home directory to the specified path, and `-e 2025-12-31` sets the account expiry date in YYYY-MM-DD format. The `-e` flag directly corresponds to the `EXPIRE_DATE` field in `/etc/shadow`, which cont…Read full explanation

Q3User and Group Managementhard
Full explanation →

An administrator needs to set up a shared directory /project for the group 'projectteam' (GID 5000). All members of the group should be able to create and delete files, but only the file owner can modify their own files. The directory should also ensure that new files inherit the group ownership. Which set of commands achieves this?

Achown root:projectteam /project; chmod 2775 /project; setfacl -m g:projectteam:rwx /project
chown root:projectteam /project; chmod 2770 /project; setfacl -d -m o::--- /projectCorrect
Cchown root:projectteam /project; chmod 2775 /project
Dchown root:projectteam /project; chmod 1770 /project; setfacl -m m::rwx /project

Option B is correct because it sets the SGID bit (2770) so new files inherit the group 'projectteam', grants rwx to the group, and uses a default ACL with `setfacl -d -m o::---` to remove 'other' permissions, ensuring only the file owner can modify their own files while group mem…Read full explanation

Untimed Practice

Answer at your own pace. Explanation and domain tag shown immediately after each answer.

Timed Practice

Countdown timer starts immediately. Results and domain scores shown at the end — just like the real exam.

Why practice here?

Full explanations on every question

Not just the right answer — you get exactly why each wrong option is wrong, so you learn the concept, not the answer.

Domain score breakdown

After each session see your score by exam domain so you know exactly where to focus study time.

100% free, forever

No subscription, no trial, no email wall. Start a session in under 10 seconds.

Exam-style questions

Scenario-based, precise wording, realistic distractors — written to match what you actually see on exam day.

← All LFCS questionsLFCS exam guideStudy guidePractice by domain