Skip to content
$ lynuxpro
← Linux

LESSON 26 OF 26 · EXPERT · 21 MIN

RHCSA and LFCS exam prep

In one minute

  • A guide to the two most respected Linux certifications: RHCSA (Red Hat Certified System Administrator) and LFCS (Linux Foundation Certified System Administrator).
  • Certifications prove your Linux skills to employers, and many DevOps job adverts list RHCSA as a plus. Studying for them also drills exactly the tasks you need on call.
  • Both exams are fully hands-on. There are no multiple-choice questions. You get real systems and a list of tasks to configure or fix, against the clock. Your system is rebooted before it is graded, so every change must survive a reboot.
  • 👉 After finishing this course, as a goal to prove and sharpen your skills.

Think of it like: a driving test, not a written quiz. Nobody asks you what a mirror is. They watch you actually drive.

The two exams at a glance

RHCSA (EX200)LFCS
Run byRed HatLinux Foundation
Linux usedRHELUbuntu
FormatHands-on, live systemsHands-on, live systems
LengthAbout 3 hoursAbout 2 hours
Valid for3 years2 years
Next stepRHCE (Ansible automation)Pairs well with Kubernetes (CKA)

Check the official pages for the current price, length and topic list before you book. They change over time.

Where each exam topic is in this course

Exam areaCourse lessons
Basic tools, files, redirection, grep, archives2, 3, 4, 12
Editing files5
Users, groups, permissions, sudo6
Software packages and repositories7
Processes, priorities, signals8
systemd services, boot targets, logs9, 19, 21
Storage: partitions, LVM, filesystems, fstab, swap10
Networking: IP, hostname, DNS, firewall13–17
SSH and secure access16
SELinux20
Scheduling: cron and timers9, Bash course
Containers with Podman (RHCSA)Docker course

Tasks that come up again and again

Practise each of these until you can do it without notes.

Getting back into root when the password is lost (RHCSA classic)

👉 You do not know the root password and must reset it.

1. Reboot, press e at the GRUB menu2. Append rd.break to the linux line, press Ctrl+X3. mount -o remount,rw /sysroot4. chroot /sysroot5. passwd root6. touch /.autorelabel        # essential on SELinux systems7. exit, exit
OUTPUTterminalutf-8 · 7L

In plain words: stop the boot early, make the disk writable, step into the real system, set a new password, and tell SELinux to fix its labels on the next boot.

Do not forget /.autorelabel. Without it, SELinux labels are wrong and you cannot log in after the reboot.

LVM: create and grow a volume

👉 "Create a 2 GB volume and mount it at /app, so it survives a reboot."

sudo pvcreate /dev/vdbsudo vgcreate vgdata /dev/vdbsudo lvcreate -n lvapp -L 2G vgdatasudo mkfs.xfs /dev/vgdata/lvappsudo mkdir /appecho "/dev/vgdata/lvapp /app xfs defaults 0 0" | sudo tee -a /etc/fstabsudo mount -asudo lvextend -r -L +1G /dev/vgdata/lvapp      # extend later, filesystem included
OUTPUTterminalutf-8 · 8L

Disk → pool → volume → filesystem → folder → fstab → test.

Swap

Swap is disk space used as overflow memory.

sudo lvcreate -n lvswap -L 1G vgdatasudo mkswap /dev/vgdata/lvswapecho "/dev/vgdata/lvswap none swap defaults 0 0" | sudo tee -a /etc/fstabsudo swapon -aswapon --show
OUTPUTterminalutf-8 · 5L

Users, groups and shared folders

👉 "Make a folder that everyone in the devs team can share."

sudo groupadd devssudo useradd -G devs -s /bin/bash alicesudo mkdir /shared && sudo chgrp devs /sharedsudo chmod 2770 /shared        # setgid: new files belong to the devs groupsudo chage -M 90 alice         # password expires every 90 days
OUTPUTterminalutf-8 · 5L

The 2 in 2770 is setgid: every new file in the folder automatically belongs to the devs group, so the whole team can use it.

Networking with nmcli (RHEL)

👉 "Give this server a fixed IP address and a hostname."

nmcli con showsudo nmcli con mod "System eth0" ipv4.addresses 192.168.1.50/24 ipv4.gateway 192.168.1.1 ipv4.dns 192.168.1.1 ipv4.method manualsudo nmcli con up "System eth0"sudo hostnamectl set-hostname server1.example.com
OUTPUTterminalutf-8 · 4L

Firewall and SELinux together

👉 "Serve a website on port 82."

sudo firewall-cmd --add-port=82/tcp --permanent && sudo firewall-cmd --reloadsudo semanage port -a -t http_port_t -p tcp 82      # allow httpd on a non-standard portsudo restorecon -Rv /var/www/htmlgetenforce                                           # must stay Enforcing
OUTPUTterminalutf-8 · 4L

A web server on an unusual port needs two things: a firewall rule and an SELinux port label. This pair appears on exams all the time.

Remember it: Unusual port = open the firewall + tell SELinux. Two locks, two keys.

Scheduling with cron

👉 "Run this script at 02:30, Monday to Friday."

crontab -e -u alice# 30 2 * * 1-5 /usr/local/bin/backup.sh     (02:30, Monday to Friday)systemctl list-timers
OUTPUTterminalutf-8 · 3L
Cron fieldRange
Minute0–59
Hour0–23
Day of month1–31
Month1–12
Day of week0–7 (0 and 7 are both Sunday)

Remember it: The five fields read "Minute Hour Day Month Weekday": "My House Does Make Waffles".

Containers with Podman (RHCSA)

Podman is Red Hat's tool for running containers, very similar to Docker.

podman pull registry.access.redhat.com/ubi9/ubipodman run -d --name web -p 8080:80 -v /srv/web:/var/www/html:Z registry/httpdpodman generate systemd --name web --files --new     # or Quadlet files on newer RHELsystemctl --user enable --now container-web.serviceloginctl enable-linger alice                         # keep user services running after logout
OUTPUTterminalutf-8 · 5L
  • :Z on the volume relabels the folder for SELinux. Forgetting it is another common stumble.
  • enable-linger keeps the user's container running after they log out.

Exam technique

  • Read every task fully before you start. Some depend on earlier ones.
  • Make everything permanent. The system is rebooted before grading. Anything set with a temporary command (mount, sysctl -w, firewall without --permanent) scores zero.
  • Reboot it yourself before time runs out, to check everything survives.
  • Use man and --help. They are allowed (the internet is not). man 5 fstab and man 5 crontab show file formats. grep -r EXAMPLE /usr/share/doc finds samples.
  • Do not get stuck. Skip a hard task, finish the easy ones, then come back.
  • Never turn off SELinux to get past a problem. Tasks will fail grading.

An 8-week study plan

WeekFocus
1Moving around, files, redirection, grep, find, archives (lessons 2–4, 12)
2Users, permissions, sudo, ACLs (lesson 6)
3Packages, processes, systemd, logs (lessons 7–9, 19)
4Storage: partitions, LVM, filesystems, swap, fstab (lesson 10)
5Networking, SSH, firewalls (lessons 13–17)
6SELinux, boot, root password reset, scheduling (lessons 20, 21)
7Containers with Podman; full timed practice exams
8Weak spots; two more timed practice exams, with reboot checks

Practise on virtual machines on your own computer (VirtualBox, UTM on Apple silicon, or the free Red Hat Developer subscription for RHEL), where you can break and rebuild things freely. The live labs on this site cover the Linux basics with automatic checking.

Why it is worth it

Beyond the certificate, preparing forces you to master the tasks you need on call: getting back into a locked system, fixing storage, making changes permanent, and working with SELinux instead of against it. RHCSA is also a common stepping stone to RHCE (Ansible) and the Kubernetes CKA.

Common mistakes

  • Temporary changes that disappear at the grading reboot.
  • Typos in /etc/fstab that stop the system booting. Always run mount -a after editing it.
  • Forgetting /.autorelabel after resetting the root password.
  • Only reading, never practising. These exams reward muscle memory.

Practice

  1. Without notes, write the steps to reset a forgotten root password on RHEL.
  2. Create a 1 GB logical volume, format it as xfs, and mount it permanently at /data.
  3. Set up Apache to serve on port 82, with SELinux enforcing and the firewall open.
  4. Schedule a script to run at 23:15 every Sunday.

Cheat sheet

TaskCommand
Grow a volume and its filesystemlvextend -r -L +1G /dev/vg/lv
Test fstabmount -a
Permanent firewall rulefirewall-cmd --add-port=82/tcp --permanent; firewall-cmd --reload
SELinux port labelsemanage port -a -t http_port_t -p tcp 82
Fix SELinux file labelsrestorecon -Rv path
Fixed IP on RHELnmcli con mod ... then nmcli con up
Container as a servicepodman generate systemd --new --files

Key takeaways

  • RHCSA and LFCS are hands-on exams: you fix real systems, there are no multiple-choice questions.
  • Every change must survive a reboot, because the system is rebooted before grading.
  • Practise the common tasks (root reset, LVM, users, firewall plus SELinux, cron) until they are automatic.
  • man pages are allowed in the exam. Use them.
  • Never turn off SELinux. Work with it.