100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHCSA Exam Study Guide with Complete Solutions $12.49   Add to cart

Exam (elaborations)

RHCSA Exam Study Guide with Complete Solutions

 4 views  0 purchase
  • Course
  • RHCSA
  • Institution
  • RHCSA

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 i...

[Show more]

Preview 3 out of 20  pages

  • August 28, 2024
  • 20
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • RHCSA
  • RHCSA
avatar-seller
SophiaBennett
©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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller SophiaBennett. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

76799 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.49
  • (0)
  Add to cart