Timed RHCSA-style practice tasks
Complete a full set of exam-style tasks in under three hours with everything surviving a reboot.
By Invicly Tech, , in Linux Administration (RHCSA-style). About 11 minutes to read.
In short
The RHCSA is a timed, hands-on exam: you get a list of tasks on real machines and everything is checked after a reboot. Practise full task sets under a timer, starting with anything that blocks other work, such as resetting root or fixing networking. Speed comes from repetition; correctness comes from verifying and rebooting.
Explained simply
The RHCSA exam is not a quiz. You sit at real Linux machines with a list of tasks, such as create these users, build this storage, run this container at boot. Afterwards a script checks the machines. There are no multiple-choice questions.
The machines are checked after a reboot. So a task that works now but is gone after a restart counts as failed. That is the single biggest reason people fail, and the reason every practice session must end with a reboot.
Speed comes from practice. The first time, building LVM storage might take you 20 minutes with the man pages open. After ten drills it takes three. Timed practice turns slow, careful steps into habits.
Good practice also trains your order of work: read everything, fix anything that blocks other tasks first, then do the quick wins, and never sink half an hour into one stubborn task.
Press Play on a diagram to walk through it one step at a time.
- 1Read every task first
Note dependencies and quick wins.
- 2Unblock access
Root reset, networking, repositories.
- 3Work through tasks
Storage, users, permissions, SELinux, containers.
- 4Reboot and verify
Everything must persist.
- 5Review misses
Redo weak tasks until automatic.
- Back to step 1
- Access and boot
- Root password reset
- Default target
- Network with nmcli
- Software
- Repository files
- dnf install and groups
- Storage
- Partitions and swap
- LVM create and extend
- fstab and autofs
- Users and files
- Users, groups, password aging
- Permissions, SGID, ACLs
- sudo rules
- Security and services
- firewalld
- SELinux labels, booleans, ports
- cron and timers
- Containers at boot
In depth
Plan the first ten minutes
Read the whole task list before typing anything. Mark tasks that others depend on: you cannot install packages before the repository is set up, and you cannot do anything remotely if networking or the root password is broken. Those go first. Then mark quick wins, such as a cron job or a user, and do them early to bank points.
Keep a short checklist on paper or in a file with each task number and its status. If a task is not working after about ten minutes, write down where you got stuck and move on. Coming back later with fresh eyes is often faster, and an unfinished task costs less than three tasks you never reached.
- Blockers first: root access, network, repositories
- Then quick wins, then long tasks like storage
- Leave 15 to 20 minutes for the final reboot and checks
Resetting the root password
A classic first task is getting into a machine whose root password you do not know. On RHEL 9: reboot, and at the GRUB menu press e on the default entry. At the end of the line starting with linux, add rd.break and press Ctrl+X. You land in a shell inside the initramfs, before the real system starts.
The real root filesystem is mounted read-only at /sysroot. Run mount -o remount,rw /sysroot, then chroot /sysroot, then passwd root. Because the password file was changed outside SELinux, its label is now wrong; touch /.autorelabel so the next boot fixes labels. Exit twice to continue booting. The relabel takes a few minutes and reboots once more. Forgetting the autorelabel step is a common reason login still fails.
- 1GRUB: press e
Edit the default entry
- 2Add rd.break
End of the linux line, then Ctrl+X
- 3Remount /sysroot rw
mount -o remount,rw /sysroot
- 4chroot /sysroot; passwd root
Set the new password
- 5touch /.autorelabel
Fix SELinux labels at next boot
- 6exit, exit
Boot continues and relabels
A persistence checklist
For each kind of task there is a runtime command and a persistent one. Services: systemctl enable, not just start. Firewall: --permanent plus --reload. SELinux: setsebool -P, semanage fcontext plus restorecon, semanage port. Mounts and swap: a line in /etc/fstab, tested with mount -a and swapon -a. Kernel settings: a file in /etc/sysctl.d/. Network: nmcli profiles with autoconnect. Tuning: tuned-adm profile. Default target: systemctl set-default. Rootless containers: a Quadlet file plus loginctl enable-linger.
Before the final reboot, run quick checks: findmnt --verify for fstab, systemctl is-enabled for each service, firewall-cmd --list-all --permanent, and getenforce. A broken fstab line is the worst outcome, because the machine may stop in emergency mode and every task on it is lost.
- systemctl start
- firewall-cmd without --permanent
- setsebool without -P
- mount by hand, sysctl -w, setenforce
- systemctl enable --now
- firewall-cmd --permanent, then --reload
- setsebool -P, semanage
- fstab line, /etc/sysctl.d file, /etc/selinux/config
Use the documentation on the machine
There is no internet access in the exam, but the system documentation is there. man -k keyword (or apropos) finds the right man page, for example man -k lvm. Inside a man page, press / to search and look for the EXAMPLES section near the end. man 5 crontab explains the file format, while man 1 crontab explains the command.
Some man pages are especially useful: semanage-fcontext(8) ends with an example rule, nmcli-examples(7) has ready network setups, systemd.time(7) explains OnCalendar, and podman-systemd.unit(5) documents Quadlet keys. /usr/share/doc holds sample configs for many packages. Practise finding answers this way, so you rely on skill instead of memory.
- man -k fcontext; man semanage-fcontext, then /EXAMPLE
- man nmcli-examples for static IP recipes
- man podman-systemd.unit for every Quadlet key
Build your own drills and measure
Use the official RHCSA objectives as your syllabus and write small tasks for each one, with an exact expected result, such as group devops owns /devops with mode 2770. Group them into full sets that feel like an exam. Start each set on a fresh VM snapshot, start a timer, and do not look at notes except man pages.
At the end, reboot and grade yourself with a checklist of commands, the same way a grading script would: findmnt, id, ls -ld, crontab -l -u, curl, systemctl is-enabled, podman ps. Write down the time and every miss. Redo missed task types the next day until they are automatic, and repeat full sets until you finish comfortably under three hours with every check passing after the reboot.
Learn it in 5 short steps
About 1h 35m each. Track them with a timer in your plan.
- 1Reset root and fix networking first~1h 35m
- 2Drill storage, users and permissions tasks~1h 35m
- 3Drill SELinux, firewall and container tasks~1h 35m
- 4Reboot and verify every task persists~1h 35m
- 5Repeat until under three hours~1h 35m
Key points
- Work on a fresh VM each time and keep a written task list from the RHCSA objectives.
- Make every change persistent: enable services, use --permanent, fstab and -P.
- Reboot before the time is up; a server that does not boot can fail the whole exam.
- Use man pages and /usr/share/doc instead of memorising every option.
Key terms
Tap a card to flip it. 0/4 known
Examples
# Sample 20-minute drill
# 1. Create VG vgexam with 16M extents and LV lvexam of 30 extents, xfs, mount at /exam
# 2. Group devops, users amy and bob, shared dir /devops with SGID, mode 2770
# 3. Cron job for amy at 14:23 daily running: logger "EX200 drill"
# 4. Serve /srv/web from httpd on port 82 with SELinux enforcing
# 5. Rootless container for bob that starts at boot
# Then:
sudo systemctl reboot
# ...and check every item again: findmnt, ls -ld, crontab -l -u amy, curl, podman psWrite your own drills from the objectives and always finish with a reboot.
Unblock the machine first
The task list starts with: the root password is unknown, networking is wrong and there is no repository. Everything else depends on these. Step 1: reset root with rd.break. Step 2: fix the network profile with nmcli and verify. Step 3: add the two given repositories as a .repo file and check that dnf can see them. Only now move on to storage and users.
# after the rd.break reset and reboot, logged in as root:
nmcli con show
nmcli con mod 'Wired connection 1' ipv4.method manual ipv4.addresses 172.25.250.11/24 \
ipv4.gateway 172.25.250.254 ipv4.dns 172.25.250.254 connection.autoconnect yes
nmcli con up 'Wired connection 1' && ping -c1 172.25.250.254
cat > /etc/yum.repos.d/exam.repo <<'EOF'
[baseos]
name=BaseOS
baseurl=http://content.example.com/rhel9/BaseOS
gpgcheck=0
[appstream]
name=AppStream
baseurl=http://content.example.com/rhel9/AppStream
gpgcheck=0
EOF
dnf repolistGrade yourself after the reboot
You finished a practice set in 2 hours 20 minutes. Step 1: reboot. Step 2: run one check per task, exactly as a grading script would, and mark each pass or fail. Step 3: the swap task fails because the fstab line had a typo you never tested. Step 4: note it, fix it, and add swapon -a to your personal pre-reboot checklist.
systemctl reboot
# after boot:
findmnt /exam && lvs vgexam
swapon --show # empty: FAIL
id amy; ls -ld /devops # drwxrws--- root devops
crontab -l -u amy
curl -s http://localhost:82/ | head -1
systemctl is-enabled httpd chronyd
sudo -iu bob podman ps # container started at boot?
getenforceQuick reference
- Read every task first; do blockers (root, network, repos) before anything else
- Root reset: rd.break, remount /sysroot rw, chroot, passwd, touch /.autorelabel
- Persistent forms: enable, --permanent, -P, semanage, fstab, sysctl.d, linger
- Before rebooting: mount -a, swapon -a, findmnt --verify, systemctl is-enabled
- Stuck for 10 minutes? Note it and move on
- man -k keyword finds the page; search EXAMPLES with /
- Leave 15 to 20 minutes to reboot and verify every task
- Drill on fresh VM snapshots and record your time and misses
Quick quiz
Pick an answer to see if you're right and why.
Practice exercises
Try each one yourself first. Use the hint if you get stuck, then compare with the solution.
- Exercise 1easy
Find, using only man pages on the system, the example command for adding an SELinux file context rule.
- Exercise 2medium
On a test VM, reset the root password to redhat using rd.break and confirm the login works after the relabel.
- Exercise 3hard
Do this 20-minute drill against a timer, then reboot and verify: swap of 512 MiB on a new LV, user amy in group devops with a password that expires every 60 days, httpd on port 82 with SELinux enforcing.
Check yourself
Answer in your head, reveal, then be honest with yourself.
Feel confident about this topic?
Frequently asked questions
- How long is the RHCSA exam?
- The current RHEL 9 based EX200 exam is about three hours, which is why the goal here is to finish a full practice set in under three hours. Check the official exam page for the latest details before you book.
- Can I use the internet or my notes during the exam?
- No. You can use the documentation installed on the machines, such as man pages and /usr/share/doc, so practise finding answers there.
- Do I lose points if I reboot during the exam?
- No, rebooting is expected and wise. The risk is a machine that does not come back, so check fstab and boot settings before you reboot.
- What is the most common reason people fail?
- Changes that do not survive a reboot, and running out of time on one stuck task. Persistent commands and a strict time plan fix both.