Linux Foundation Certified System Administrator

LFCS practice exam and hands-on tasks

The Linux Foundation Certified System Administrator exam tests everyday Linux administration on a live system: files and text, services, users, networking and storage. It is the base for the Kubernetes exams, and a strong certification on its own.

The exam at a glance

Format
Hands-on: tasks on live systems, in a terminal
Duration
120 minutes
Passing score
67%

From the public exam information; check the Linux Foundation's exam page before you book.

Domains and weights

DomainWeight
Operations Deployment25%
Networking25%
Essential Commands (free)20%
Storage20%
Users and Groups10%

What you get for LFCS

Try it: free examples

Original examples from the LFCS course, written by us, not taken from any exam.

Hands-on task: Capture output and errors separately

Time budget: 5 minutes

On lx1, run ls /etc/hostname /etc/does-not-exist once so that:

  • the normal output is written to /opt/lfcs/redirect/out.txt,
  • the error message is written to /opt/lfcs/redirect/err.txt,
  • and both together are appended to /opt/lfcs/redirect/all.log (run the command a second time for this).
Show the model solution
ssh lx1
cd /opt/lfcs/redirect
ls /etc/hostname /etc/does-not-exist > out.txt 2> err.txt
ls /etc/hostname /etc/does-not-exist >> all.log 2>&1

2>&1 must come after >> all.log: it means "send stream 2 to wherever stream 1 goes now".

Hands-on task: Add a persistent second address

Time budget: 8 minutes

On lx1, add the address 192.0.2.50/24 to the main network interface in addition to the address it already has. The address must survive a reboot, and the existing address must keep working.

Use netplan (in a new file under /etc/netplan/).

Show the model solution
ssh lx1
IF=$(ip route show default | awk '{print $5; exit}')
sudo tee /etc/netplan/60-extra-address.yaml >/dev/null <<EOF
network:
  version: 2
  ethernets:
    $IF:
      addresses: [192.0.2.50/24]
EOF
sudo chmod 600 /etc/netplan/60-extra-address.yaml
sudo netplan try        # press Enter to keep it
ip -br addr

netplan merges all files in /etc/netplan/, so the new file adds the address to the existing (DHCP) configuration.

Spot the bug

As user ubuntu you run:

sudo echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/90-forward.conf

The answer is Permission denied. Why, and what works?

  1. Your own shell opens the file for > before sudo runs; use echo "net.ipv4.ip_forward=1" | sudo tee /etc/sysctl.d/90-forward.conf
  2. echo is a shell builtin and cannot run under sudo; use sudo printf instead
  3. The directory /etc/sysctl.d does not exist on Ubuntu
  4. ubuntu is not in the sudo group; add it with usermod -aG sudo ubuntu
Show the answer
  1. Correct. sudo only raises the echo command. The redirection belongs to your unprivileged shell, so the file cannot be opened. sudo tee opens the file as root.
  2. Not correct. There is also an /usr/bin/echo that sudo can run. The command is fine; the redirection is the problem, and sudo printf ... > fails the same way.
  3. Not correct. It exists. The error comes from opening the file without root rights.
  4. Not correct. sudo itself did not complain. It ran echo as root; the write failed in your own shell.

Start free, then choose

The free plan includes the whole Essential Commands domain: its lessons, quizzes and tasks. The LFCS exam pass opens everything for LFCS for 90 days, paid once; All access opens all six certifications. See pricing.

Frequently asked questions

Is this the official LFCS training?

No. Clustiro is independent and not affiliated with the Linux Foundation. You book and take the exam with the Linux Foundation; we help you prepare with original material.

Are these real exam questions?

No. Every question and task is written by us. They follow the published curriculum's domains, weights and style, so the practice is realistic, but none is taken from an exam.

Do I need my own cluster or machines?

Yes: you practise on your own virtual machines, set up in the course's lab lesson. Any Windows, macOS or Linux computer with 16 GB RAM and about 70 GB free disk works (8 GB RAM is enough for LFCS), or a small cloud VM. The app never connects to them; you run the verify commands and mark your result.

How long does preparation take?

It depends on your experience and the time you have each week. The app shows your progress per domain and what to study next; the exam pass gives you 90 days and can be extended.

Other certifications