RHCSA Cheat Sheet 2026
The 30 highest-yield RHCSA facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
50 questions
210 min time limit
70% to pass
- In Bash, what does the `test -f /etc/passwd` command check? → Whether /etc/passwd exists and is a regular file
- Your goal is to access an SMB share. Which of the following commands exemplifies the appropriate syntax? → mount -o username=sambauser1 //server/share /somewhere
- What command verifies the syntax of the SSH server configuration file without restarting the service? → sshd -t
- Which file on RHEL must be updated to allow the new SSH port through the SELinux policy? → semanage port -a -t ssh_port_t -p tcp NEWPORT
- What command is used to make a shell script executable? → chmod +x script.sh
- How do you run a container in detached (background) mode using Podman? → podman run -d nginx
- How can a cron job be created for a specific user? → Log in as that user and type crontab -e to open the cron editor
- Where is the authorized public keys file stored for SSH key-based login on RHEL? → ~/.ssh/authorized_keys
- What is the purpose of the `~/.ssh/known_hosts` file? → Stores fingerprints of previously connected SSH servers
- What command generates a systemd unit file for an existing Podman container named 'myapp'? → podman generate systemd myapp
- After running 'podman generate systemd --name myapp --files', where should you place the generated unit file to enable it for a non-root user? → ~/.config/systemd/user/
- What `firewall-cmd` command permanently allows SSH traffic through the firewall? → firewall-cmd --permanent --add-service=ssh && firewall-cmd --reload
- Which command lists all containers, including stopped ones, in Podman? → podman ps -a
- Which file contains the system-wide SSH server configuration on RHEL? → /etc/ssh/sshd_config
- What is the exit status of a Bash command that completes successfully? → 0
- Where does a system obtain its first supply of time when it starts up? → The hardware clock
- What is the primary purpose of the `/etc/group` file in a Linux system? → To define group names, GIDs, and list the members of each group.
- An executable file named `app.sh` has the following permissions: `-rwsr-xr--`. Which of the following statements is true? → The file will run with the privileges of the file owner.
- A system administrator runs the command `umask 0027`. What will be the default permissions for a newly created directory? → 750
- How do you mount the host directory '/data' to '/mnt/data' inside a Podman container? → podman run -v /data:/mnt/data nginx
- On a Linux computer, which of the following files is used to initialize a system-wide environment? → /etc/profile
- Which of the following commands enables a Linux server administrator to switch between run levels without having to restart the server? → init
- Which of the aforementioned commands or options may be used to list the installed services and the runlevels that go with them? → chkconfig
- How do you reference the first argument passed to a shell script? → $1
- "Which of the following describes Red Hat Enterprise Linux's Graphical Mail clients? Each correct answer represents a complete solution. Choose two." → Mozilla
- You want to type the previous command again into the bash shell. Which control from the list below will you use? → history !!
- How do you use SCP to copy a local file to a remote host's `/tmp` directory? → scp localfile user@host:/tmp/
- Which `sshd_config` directive sets the maximum number of concurrent unauthenticated SSH connections? → MaxStartups
- Which command lists all locally stored container images in Podman? → podman images
- By default, where are images stored for a rootless Podman user named 'alice'? → /home/alice/.local/share/containers/storage/
Turn these facts into recall: