RHCSA Study Guide – Complete With Solutions (100%)
Systemctl list-units --type=target Right Ans - View all active targets on the
system.
Systemctl list-units --type=target --all Right Ans - View all targets installed
on the disk.
Systemctl get-default Right Ans - Display the current default target.
Systemctl list-units --type=target | grep multi-user.target Right Ans - check
if multi-user target is available
Systemctl set-default multi-user.target Right Ans - Change the default
target to the multi-user target
Systemctl -t help Right Ans - View all available systemd configuration units.
Systemctl status sshd.service Right Ans - Find the status of the sshd service.
Systemctl list-units --type=service Right Ans - List all active service unit
configuration files.
Systemctl is-active httpd Right Ans - Determine if the httpd service is
active.
Systemctl is-enabled httpd Right Ans - Determine if the httpd service is
enabled
Systemctl list-unit-files --type=service --all Right Ans - View enabled and
disabled settings for all units of the type "service"
Systemctl list-units --type=service --all Right Ans - List all service unit
configuration files, whether they are active or not
Systemd.unit=rescue.target Right Ans - Change the Boot Target
, Shutdown +5 shutdown messages goes here Right Ans - Using the
shutdown command, schedule a shutdown for five minutes from now and
notify all users on the system of the shutdown
Shutdown -r now Right Ans - Using the shutdown command, reboot the
machine immediately without delay.
Systemctl halt Right Ans - Using systemctl, shutdown the system.
Shutdown 01:00 Right Ans - Schedule the system for a shutdown at 1:00
A.M. in the morning.
Shutdown -c Right Ans - Cancel the scheduled shutdown.
Systemctl reboot Right Ans - Using systemctl, reboot the the system.
Systemctl halt
Systemctl poweroff
Shutdown -P
init 0 Right Ans - Using any method of your choice, power off the system.
pkill -t pts/0 Right Ans - kill all of the "user" user's processes
pgrep -u user
pkill -u user ssh Right Ans - Find all running processes left, which should
either be Bash or SSH and kill it
nice -n -20 httpd Right Ans - Start the httpd service with the most favorable
nice possible.
ps axo pid,comm,nice | grep httpd
ps axo pid,comm,nice --sort=-nice | grep httpd Right Ans - View the current
nice of the httpd service using the ps command and grep command together.
renice -n 0 $(pgrep httpd) Right Ans - Renice all httpd processes and set
the nice level to 0
uptime Right Ans - View the system uptime and load average.
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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 LeCrae. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.99. You're not tied to anything after your purchase.