RHCSA and Linux+ practice questions
850 free practice questions across 85 packs, written objective by objective for RHCSA EX200 (RHEL 10) and CompTIA Linux+ XK0-006. Every question carries an explanation, and your mastery is tracked per exam objective so you can see exactly which domains need work.
Question packs
RHCSA
- Essential Tools (10 questions) - Access a shell, use I/O redirection, grep/regex, access remote systems via SSH, archive/compress files, and manage file permissions.
- Software Management (10 questions) - Configure RPM repositories, manage packages with dnf, and work with module streams and Flatpak applications.
- Shell Scripting (10 questions) - Write bash scripts using conditionals, loops, positional parameters, and command substitution for automation tasks.
- Operating Running Systems (10 questions) - Boot into different targets, manage processes, view logs with journalctl, tune system performance, and control services with systemctl.
- Local Storage (10 questions) - Partition disks with MBR and GPT, create physical volumes, volume groups, logical volumes, configure fstab, and manage swap.
- File Systems (10 questions) - Create and mount ext4, xfs, and vfat file systems. Configure NFS mounts, autofs, extend LVM, and set GID directories.
- Deploy & Configure (10 questions) - Schedule tasks with at/cron, manage systemd services, configure time synchronization with chrony, and modify the bootloader.
- Basic Networking (10 questions) - Configure IPv4 and IPv6 networking, set hostnames, manage DNS resolution, and configure firewalld zones and rules.
- Users & Groups (10 questions) - Create and manage local users and groups, configure password aging policies, manage sudo access, and set default permissions.
- Security (10 questions) - Configure firewalld, manage default file permissions with umask, set up SSH key-based authentication, and enforce SELinux policies.
OpenShift Admin
- Manage OpenShift Container Platform (10 questions) - Use the oc CLI and web console to manage an OpenShift cluster. Create and delete projects, import and export Kubernetes resources, query and
- Manage Users & Policies (10 questions) - Configure the HTPasswd identity provider for authentication. Create and remove users, modify passwords, create and manage groups, and modify
- Control Access to Resources (10 questions) - Define and apply role-based access control (RBAC), apply permissions to users, create and apply secrets, and create service accounts with se
- Configure Networking (10 questions) - Troubleshoot software-defined networking, create and edit external routes, control cluster network ingress, create self-signed certificates,
- Configure Pod Scheduling & Scaling (10 questions) - Limit resource usage with CPU and memory requests and limits, scale applications to meet demand, control pod placement with node selectors,
- Manage Application Deployments (10 questions) - Identify and use image tags and digests, roll back failed deployments, manage image streams, and use triggers to manage images and deploymen
- Application Configuration & Storage (10 questions) - Create and use secrets and ConfigMaps, provision block and file-based persistent storage, use storage classes, and manage non-shared storage
- Application Reliability (10 questions) - Configure and use readiness, liveness, and startup health probes. Reserve and limit application compute capacity and scale applications to m
- Developer Self-Service & Operators (10 questions) - Configure cluster resource quotas, project quotas, project limit ranges, and project templates to enable developer self-service. Install and
- Application Security & Updates (10 questions) - Configure and manage service accounts, run privileged applications, manage security context constraints (SCCs), configure application access
RHCE EX294
- Ansible Core Components (10 questions) - Understand the fundamental building blocks of Ansible automation: inventories, modules, variables, facts, loops, conditionals, plays, handli
- Control Node Setup (10 questions) - Install and configure an Ansible control node. Install ansible-core and ansible-navigator packages. Create and customize ansible.cfg and ans
- Managed Nodes & Ad-Hoc (10 questions) - Configure managed hosts for Ansible access. Distribute SSH keys for passwordless authentication. Configure privilege escalation using become
- Automation Content Navigator (10 questions) - Use ansible-navigator as the primary interface for running and developing Ansible automation. Run playbooks in stdout and interactive modes.
- Plays & Playbooks (10 questions) - Write and execute Ansible playbooks using common modules. Use the copy, file, template, dnf/yum, service, user, lineinfile, and other essent
- Roles & Collections (10 questions) - Create, structure, and use Ansible roles for reusable automation. Install roles from Ansible Galaxy and define dependencies in requirements.
- Packages, Services & Firewall (10 questions) - Automate package management with yum and dnf modules. Configure package repositories using yum_repository. Manage system services with the s
- Storage, Files & Scheduling (10 questions) - Automate storage configuration including filesystems, mounts, partitions, and logical volumes. Manage files with copy, lineinfile, blockinfi
- Security, Users & Groups (10 questions) - Automate security configuration including SELinux booleans, file contexts, and policy enforcement. Manage users and groups with the user and
- Templates & Vault (10 questions) - Create and deploy Jinja2 templates with variable substitution, control structures, and filters. Use the template module to generate configur
Linux Diagnostics
- General Troubleshooting Methods (10 questions) - Employ general troubleshooting methodology. Collect system information with sosreport, configure persistent journaling, centralized logging
- System Startup Issues (10 questions) - Troubleshoot boot failures, configure GRUB2 for BIOS and UEFI systems, recover root access with rd.break, manage systemd service dependencie
- File System Issues (10 questions) - Recover corrupted ext4 and XFS file systems, restore misconfigured LVM configurations from backup archives, recover data from LUKS-encrypted
- Package Management Issues (10 questions) - Resolve RPM package dependency issues, repair a corrupted RPM database with rpmdb_verify/rpmdb_dump/rpmdb_load, verify and restore changed f
- Network Connectivity Issues (10 questions) - Verify network connectivity with standard tools, scan networks with nmap, inspect traffic with tcpdump and Wireshark, troubleshoot NetworkMa
- Application Issues (10 questions) - Identify shared library dependencies with ldd and ldconfig, detect memory leaks with valgrind, trace system calls with strace and library ca
- Authentication Issues (10 questions) - Troubleshoot PAM configuration issues, resolve LDAP connectivity and TLS certificate problems, diagnose Kerberos authentication failures inc
- Kernel Crash & SystemTap (10 questions) - Configure kdump for kernel crash dumps, set crash dump destinations (local, NFS, SSH), trigger kernel panics for testing, analyze crash dump
Ansible Automation Platform
- Git for Automation (10 questions) - Clone Git repositories, create and modify files, commit changes, and push to remote repositories. Manage version-controlled automation conte
- Manage Inventory Variables (10 questions) - Structure host and group variables using multiple files. Use special variables to override connection parameters. Set up host_vars and group
- Manage Task Execution (10 questions) - Control privilege escalation in playbooks. Run selected tasks using tags. Manage task execution flow with conditionals, handlers, blocks, an
- Filters & Plugins (10 questions) - Use lookup plugins to populate variables from external sources. Implement advanced loops using lookup plugins. Inspect, validate, and manipu
- Delegate Tasks (10 questions) - Run tasks for a managed host on a different host using delegation. Control whether facts gathered by delegated tasks are assigned to the man
- Content Collections (10 questions) - Create, install, and publish Ansible content collections. Understand collection structure, namespace organization, and distribution through
- Execution Environments (10 questions) - Build execution environments with ansible-builder. Run playbooks in execution environments using ansible-navigator. Upload EEs to automation
- Inventories & Credentials (10 questions) - Manage advanced inventories including dynamic inventory from identity management or database servers. Create machine credentials and source
- Automation Controller (10 questions) - Run playbooks in automation controller. Pull content from Git or automation hub. Configure execution environments, job templates, and workfl
LFCS
- Operations Deployment (10 questions) - Modify kernel parameters persistently and at runtime, manage processes and services, schedule jobs with cron and at, manage software package
- Networking (10 questions) - Configure IPv4 and IPv6 networking, set up NTP time synchronization, troubleshoot network issues, configure OpenSSH, manage firewall rules a
- Storage (10 questions) - Configure and manage LVM, work with the virtual file system, create and troubleshoot ext4/xfs/btrfs filesystems, mount remote filesystems vi
- Essential Commands (10 questions) - Perform basic Git operations, create and troubleshoot systemd services, monitor system performance, determine application constraints, troub
- Users & Groups (10 questions) - Create and manage local user and group accounts, configure personal and system-wide environment profiles, set user resource limits, configur
Linux Essentials
- The Linux Community & Open Source (10 questions) - Understand Linux evolution, major distributions, embedded systems, cloud deployments, major open source applications (desktop and server), o
- Finding Your Way on a Linux System (10 questions) - Master command line basics including shell syntax, variables, quoting, and command history. Use man and info pages to get help. Navigate the
- The Power of the Command Line (10 questions) - Archive and compress files using tar, gzip, bzip2, xz, and zip. Search and extract data using grep, pipes, I/O redirection, and basic regula
- The Linux Operating System (10 questions) - Understand differences between Linux, Windows, and macOS. Identify computer hardware components and how Linux interacts with them. Know wher
- Security & File Permissions (10 questions) - Identify user types (root, standard, system). Create and manage users and groups. Understand and manipulate file permissions and ownership u
LPIC-1 (101)
- System Architecture (10 questions) - Determine and configure hardware settings using /sys, /proc, /dev. Understand the boot sequence from BIOS/UEFI through bootloader to init. M
- Linux Installation & Package Management (10 questions) - Design hard disk layouts including /boot, swap, LVM. Install and configure GRUB 2 and GRUB Legacy boot managers. Manage shared libraries wit
- GNU & Unix Commands (10 questions) - Work on the command line with Bash, environment variables, history, and quoting. Process text with filters (cat, cut, sort, uniq, sed, tr, w
- Devices, Filesystems & FHS (10 questions) - Create partitions (fdisk, gdisk, parted) and filesystems (mkfs, mkswap). Maintain filesystem integrity with fsck, du, df. Control mounting w
LPIC-1 (102)
- Shells & Shell Scripting (10 questions) - Customize shell environments with profiles, bashrc, aliases, and functions. Set PATH and environment variables. Write Bash scripts using loo
- User Interfaces & Desktops (10 questions) - Understand X11 architecture, Xorg configuration, display managers, and window managers. Configure X11 remote display with DISPLAY, xhost, an
- Administrative Tasks (10 questions) - Manage user and group accounts with useradd, usermod, userdel, groupadd, passwd, chage, and getent. Automate tasks with cron, at, and system
- Essential System Services (10 questions) - Maintain system time with NTP (chrony, ntpd), hwclock, and timedatectl. Configure system logging with rsyslog, logrotate, and journalctl. Un
- Networking Fundamentals (10 questions) - Understand TCP/IP fundamentals including subnetting, CIDR, common ports, UDP vs TCP, and IPv4 vs IPv6. Configure persistent networking with
- Security (10 questions) - Perform security administration: audit SUID/SGID files, manage password aging with chage, discover open ports with nmap/ss, configure sudo a
LPIC-2 (201)
- Capacity Planning (10 questions) - Measure and troubleshoot resource usage across CPU, memory, disk I/O, and network. Use tools like iostat, vmstat, sar, top, netstat, and ss
- Linux Kernel (10 questions) - Understand kernel components and the compilation process. Configure, build, and install custom kernels from source. Apply kernel patches. Ma
- System Startup (10 questions) - Customize the system boot loader (GRUB 2) including multi-boot configurations, kernel parameters, and password protection. Perform system re
- Filesystem & Devices (10 questions) - Operate and maintain Linux filesystems including ext4, XFS, and Btrfs. Configure mount options in /etc/fstab with advanced parameters. Manag
- Advanced Storage Device Administration (10 questions) - Configure software RAID arrays using mdadm. Build and manage Logical Volume Manager (LVM) setups including physical volumes, volume groups,
- Networking Configuration (10 questions) - Configure basic and advanced networking including static/dynamic IP, routing tables, tunnels, and VPN. Troubleshoot network connectivity iss
- System Maintenance (10 questions) - Compile and install programs from source using make and autotools. Perform backup operations with tar, rsync, dd, and Amanda. Notify users a
LPIC-2 Exam 202-450
- Domain Name Server (10 questions) - Configure and manage BIND as an authoritative and caching DNS server. Create and maintain forward and reverse DNS zones with SOA, NS, A, AAA
- HTTP Services (10 questions) - Configure Apache httpd with virtual hosts, modules, SSL/TLS certificates, authentication, URL rewriting, and access control. Deploy Nginx as
- File Sharing (10 questions) - Configure Samba for Windows-compatible file sharing with smb.conf, share definitions, user mapping, and smbpasswd. Set up NFS server exports
- Network Client Management (10 questions) - Configure ISC DHCP server with dhcpd.conf including subnets, ranges, fixed-address reservations, and DHCP options. Implement PAM authenticat
- E-Mail Services (10 questions) - Configure Postfix and understand Sendmail for SMTP mail routing with virtual domains, transport maps, and relay restrictions. Manage local e
- System Security (10 questions) - Configure Linux as a router and firewall with iptables and nftables including chains, rules, NAT, SNAT, DNAT, and port forwarding. Harden SS
Linux+
- System Management (10 questions) - Manage packages with dpkg/rpm/dnf/apt, configure LVM, control services with systemctl, set locale and time, and understand virtualization vs
- Security (10 questions) - Configure file permissions, ACLs, firewall rules with iptables/nftables, manage SELinux/AppArmor, harden SSH, and enforce password policies.
- Scripting, Containers & Automation (10 questions) - Write bash scripts with conditionals and loops, manage containers with Podman, build Dockerfiles, automate with Ansible, and schedule tasks
- Troubleshooting (10 questions) - Rescue GRUB failures, rebuild initramfs with dracut, analyze logs with journalctl, diagnose performance with top/vmstat/iostat, and troubles
- Services & User Management (10 questions) - Manage systemd services, configure DNS with BIND, set up DHCP, deploy Apache/Nginx virtual hosts, manage users and groups, and configure NFS
Try a few
Sample question 1
On a Debian-based system, which command installs a local `.deb` package file and automatically resolves its dependencies?
- A. apt install ./package.deb
- B. dpkg -i package.deb
- C. apt-get add package.deb
- D. dpkg --install --resolve package.deb
Answer: A. `apt install ./package.deb` installs the local `.deb` file and resolves dependencies from configured repos. `dpkg -i` installs but does NOT resolve dependencies -- you'd need `apt -f install` afterward.
Sample question 2
Which command queries the RPM database to list all files installed by the `httpd` package?
- A. rpm -ql httpd
- B. rpm -qa httpd
- C. rpm -qi httpd
- D. rpm -qR httpd
Answer: A. `rpm -ql` lists (l) files installed by a queried (q) package. `-qa` lists all installed packages. `-qi` shows info about a package. `-qR` shows package dependencies.
Sample question 3
You need to install `vim` on a RHEL-based system from configured repositories. Which package manager command should you use?
- A. dnf install vim
- B. apt install vim
- C. rpm -i vim
- D. pacman -S vim
Answer: A. `dnf` is the default package manager for RHEL/Fedora-based systems and resolves dependencies automatically. `apt` is Debian/Ubuntu. `rpm` doesn't resolve dependencies. `pacman` is Arch Linux.
Sample question 4
You need to create a 10G logical volume named `data` in volume group `vg01`. Which sequence is correct?
- A. lvcreate -L 10G -n data vg01
- B. lvcreate -s 10G vg01/data
- C. lvmcreate --size 10G --name data --vg vg01
- D. vgcreate data 10G vg01
Answer: A. `lvcreate -L` sets the size, `-n` names the LV, and the last argument is the VG. `-s` creates a snapshot, not a regular LV. `vgcreate` creates volume groups, not logical volumes.
Sample question 5
Which command enables and immediately starts the `nginx` service so it also survives a reboot?
- A. systemctl enable --now nginx
- B. systemctl start nginx && systemctl enable nginx
- C. service nginx enable
- D. systemctl activate nginx
Answer: A. `systemctl enable --now` combines both `enable` (persist across reboots) and `start` (activate immediately) in a single command. Option B works but requires two commands.
Frequently asked questions
Are these RHCSA and Linux+ practice questions free?
Yes. The question packs are free to take. Create a free account to track mastery per exam objective across attempts.
Do the packs match the real exam objectives?
Each pack maps to one exam domain, with objective-by-objective coverage: RHCSA EX200 packs follow the RHEL 10 objectives and CompTIA Linux+ packs follow XK0-006.
Are multiple-choice questions enough to pass RHCSA?
No, and we say so plainly: EX200 is a hands-on exam graded from machine state. Use the packs to find weak objectives, then practice those objectives on real VMs in the RHCSA track, where tasks are graded the way the real exam grades.
Multiple choice finds the gaps; real machines close them. Practice hands-on in the training tracks.