Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
This guide consolidates core concepts and practical skills required to begin your RHCSA journey, from basic command-line operation to advanced system recovery.
The command line is a conversation. You issue a command (verb + object), and the system responds. This fosters logical, structured thinking—a critical skill for any system administrator.
ssh (Secure Shell). On Linux/macOS, it’s built into the terminal. On Windows, tools like PuTTY are used.Ctrl+Alt+F3 (F2-F6) to switch to a full-screen terminal session. Press Ctrl+Alt+F1 (or F2 on some systems) to switch back to the GUI.Knowing this process is essential for troubleshooting boot failures.
| Order | Stage | Description | RHCSA Relevance |
|---|---|---|---|
| 1 | BIOS/UEFI | Initializes hardware and performs POST. Finds the bootable device. | Understanding boot device selection. |
| 2 | Bootloader (GRUB2) | Presents a menu to select the kernel. Loads the kernel and initramfs into memory. | Critical. Editing boot arguments for recovery. |
| 3 | Kernel | Takes control, initializes hardware, and mounts the root filesystem (with help from initramfs). | Essential for understanding drivers and complex storage (LVM). |
| 4 | Init System (systemd) | The first process (PID 1). Starts all other services and system targets. | Core skill. Managing services with systemctl. |
| 5 | Login Prompt | Presents a login screen (GUI or text). | The final goal—a booted, usable system. |
what happens behind the scenes before the login screen appears?
| Command | Purpose | Example |
|---|---|---|
pwd | Print Working Directory – shows your current location. | pwd → /home/john |
ls | List directory contents. | ls -l (detailed list), ls -a (show hidden files) |
cd | Change Directory. | cd /etc, cd .. (up one level), cd (go home) |
mkdir | Make Directory. | mkdir new_folder, mkdir -p parent/child (create nested) |
touch | Create an empty file. | touch newfile.txt |
mv | Move or rename a file. | mv oldname.txt newname.txt |
cat | View file content or create small files. | cat file.txt, cat > newfile.txt (create) |
echo $SHELL (usually /bin/bash).This is a classic RHCSA troubleshooting task.
Scenario: You are locked out of the system because the root password is lost.
Procedure:
Shift to access the GRUB menu.e to edit the first boot entry.linux.rd.break.Ctrl+X to boot with these parameters.mount -o remount,rw /sysroot
5. Change Root Context:
chroot /sysroot
6. Reset the Password:
passwd root
(Enter and confirm the new password).
7. Relabel SELinux (Critical for RHEL):
touch /.autorelabel
8. Exit and Reboot:
exit
The system will reboot, relabel all files for SELinux, and you can now log in with the new root password.
ls, cd, mkdir, touch, mv are your bread and butter.