100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

RHCSA Exam Study Guide with Complete Solutions

Rating
-
Sold
-
Pages
20
Grade
A+
Uploaded on
28-08-2024
Written in
2024/2025

RHCSA Exam Study Guide with Complete Solutions commands/process to reset root password - Answer️️ -on boot: select most recent kernel `e` to edit goto line with linux16, add `` to end of line `ctrl+x` to continue boot to rd rescue mode remount /sysroot as readable (defaults to read only in rd rescue mode): `mount -o remount,rw /sysroot` load the target env with: `chroot /sysroot` reset the password with: `passwd root` fix selinux context with (instructs selinux to perform full relabel on next reboot): `touch /.autorelabel` fix bootloader config issues (kernel not found or similar error) - Answer️️ -edit boot config confirm boot config is correct and make changes (spelling errors, etc) ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM 2 add `=t` to the end of the linux16 line regenerate grub config with the following command: `grub2-mkconfig -o /boot/grub2/` To diagnose boot issues more easily, you decide to disable 'quiet boot' and 'graphical boot' by removing 'quiet' and 'rhgb' from the kernel boot parameters. How would you accomplish this so it's persistent? - Answer️️ -Edit the 'GRUB_CMDLINE_LINUX' line in '/etc/default/grub' then regenerate the bootloader config using 'grub2- mkconfig -o /boot/grub2/'. Under normal circumstances, what is systemd's PID (Process ID)? - Answer️️ -PID 1 - because it's the very first binary called by the kernel at boot, and is responsible for starting up all other processes. Which rescue parameter would you pass to the kernel from the grub2 menu if your system was failing to boot because a filesystem check was failing? - Answer️️ -=t Booting to the emergency target state drops to a rescue shell after the 'root' filesystem has been mounted readonly, but BEFORE other FS checks are carried out. Although you could do the same with '' it would require considerably more effort. You are a member of a team of admins who are responsible for a critical system. This system has two different web servers installed: The first ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM 3 (Nginx) is used to serve content, the other (httpd) is installed only to satisfy dependencies and should never be started as it causes a conflict. What command could you run to ensure that 'httpd' is never accidentally started or enabled by another admin? - Answer️️ -systemctl mask httpd You're having a bad day and accidentally delete the 'initramfs' file in /boot that matches your current kernel. Which command would you run to recover from this? - Answer️️ -dracut You've just made a configuration change to the 'SSHD' service and want to daemon to reload it's configuration without disconnecting anyone. How could you accomplish this? - Answer️️ -systemctl reload ce persistent hostname change with systemd - Answer️️ -hostnamectl set- hostname command to show open/listening ports - Answer️️ -ss -taupen t = tcp a = all types of connections (sending as well as listening) u = udp p = process ids (and information about the processes that are holding those ports e = extra information n = numbers only (don't resolve the hostnames) ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM 4 replacement for nslookup - Answer️️ -dig replacement for traceroute - Answer️️ -tracepath use mtr for real time updates (may need a yum install) replacement for netstat - Answer️️ -ss create a second connection profile for device enp0s8 named STATIC - Answer️️ -nmcli connection add con-name STATIC sses 192.168.58.1/24 if name enp0s8 type ethernet #verify: nmcli connection show STATIC | less #add an additional dns server (172.16.58.254) - will require route to 172.16.0.0/16 subnet nmcli connection modify STATIC +s "172.16.0.0/16

Show more Read less
Institution
RHCSA
Course
RHCSA

Content preview

©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM

RHCSA Exam Study Guide with Complete Solutions

commands/process to reset root password - Answer✔️✔️-on boot:

select most recent kernel

`e` to edit

goto line with linux16, add `rd.break` to end of line

`ctrl+x` to continue boot to rd rescue mode

remount /sysroot as readable (defaults to read only in rd rescue mode):

`mount -o remount,rw /sysroot`

load the target env with:

`chroot /sysroot`

reset the password with:

`passwd root`

fix selinux context with (instructs selinux to perform full relabel on next
reboot):

`touch /.autorelabel`

fix bootloader config issues

(kernel not found or similar error) - Answer✔️✔️-edit boot config

confirm boot config is correct and make changes (spelling errors, etc)




1

,©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM

add `systemd.unit=rescue.target` to the end of the linux16 line

regenerate grub config with the following command:

`grub2-mkconfig -o /boot/grub2/grub.cfg`

To diagnose boot issues more easily, you decide to disable 'quiet boot' and
'graphical boot' by removing 'quiet' and 'rhgb' from the kernel boot
parameters. How would you accomplish this so it's persistent? -
Answer✔️✔️-Edit the 'GRUB_CMDLINE_LINUX' line in
'/etc/default/grub' then regenerate the bootloader config using 'grub2-
mkconfig -o /boot/grub2/grub.cfg'.

Under normal circumstances, what is systemd's PID (Process ID)? -
Answer✔️✔️-PID 1 - because it's the very first binary called by the kernel at
boot, and is responsible for starting up all other processes.

Which rescue parameter would you pass to the kernel from the grub2
menu if your system was failing to boot because a filesystem check was
failing? - Answer✔️✔️-systemd.unit=emergency.target



Booting to the emergency target state drops to a rescue shell after the 'root'
filesystem has been mounted readonly, but BEFORE other FS checks are
carried out. Although you could do the same with 'rd.break' it would
require considerably more effort.

You are a member of a team of admins who are responsible for a critical
system. This system has two different web servers installed: The first



2

, ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM

(Nginx) is used to serve content, the other (httpd) is installed only to satisfy
dependencies and should never be started as it causes a conflict. What
command could you run to ensure that 'httpd' is never accidentally started
or enabled by another admin? - Answer✔️✔️-systemctl mask httpd

You're having a bad day and accidentally delete the 'initramfs' file in /boot
that matches your current kernel. Which command would you run to
recover from this? - Answer✔️✔️-dracut

You've just made a configuration change to the 'SSHD' service and want to
daemon to reload it's configuration without disconnecting anyone. How
could you accomplish this? - Answer✔️✔️-systemctl reload sshd.service

persistent hostname change with systemd - Answer✔️✔️-hostnamectl set-
hostname your.host.name

command to show open/listening ports - Answer✔️✔️-ss -taupen



t = tcp

a = all types of connections (sending as well as listening)

u = udp

p = process ids (and information about the processes that are holding those
ports

e = extra information

n = numbers only (don't resolve the hostnames)


3

Written for

Institution
RHCSA
Course
RHCSA

Document information

Uploaded on
August 28, 2024
Number of pages
20
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
SophiaBennett Howard Community College
View profile
Follow You need to be logged in order to follow users or courses
Sold
140
Member since
1 year
Number of followers
5
Documents
9098
Last sold
2 weeks ago
EXAM GAME-CHANGER

Exam Questions and Answers Section : Study Like a Pro, Study Smart, Study with Sophia.

3.7

26 reviews

5
10
4
5
3
7
2
1
1
3

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions