RHCSA - part 1 Exam Questions and
Answers
Line at the beginning of bash files - Answer -#!/bin/bash
Character to search at the beginning of the line - Answer -^
Character to search at the end of the line - Answer -$
Character to match any single character (with the exception of the newline character) -
Answer -.
Character to match zero or more of the previous expression - Answer -*
Character to match the previous expression one of more times - Answer -+
The flag in the grep command that ignores commented lines - Answer --v
What does this regular expression search?
c.\{2\}t - Answer -any word beginning with a c, followed by exactly any two characters,
and ending with a t
(i.e coat, cart)
Command to get an overview of pending jobs for the current user - Answer -atq
(OR at -l)
Command to remove jobs - Answer -atrm JOBNUMBER
Command to inspect commands that will run when a job is executed - Answer -at -c
JOBNUMBER
Command used to manage jobs - Answer -crontab
Command to list the jobs for the current user - Answer -crontab -l
Command to remove all jobs for the current user - Answer -crontab -r
Command to edit jobs for the current user - Answer -crontab -e
, Command to remove all jobs, and replace with the jobs read from filename. (If no file is
specified, stdin is used.) - Answer -crontab FILENAME
Order of fields in crontab file - Answer -minutes (0-59), hours (0-23), day of month (1-
31), month (1-12), day of week (0-6), command
Character to specify "Do not care"/always in crontab file - Answer -*
How to indicate an interval of x in the crontab file - Answer -*/x
(i.e */7 in the minutes column will run every 7 minutes)
What two locations are recurring system jobs defined? - Answer -/etc/crontab
/etc/cron.d
What file ensures important jobs always run and are not skipped accidentally because a
system was turned off? - Answer -/etc/anacron
Command to print systemd timer unit configuration files - Answer -systemd-tmpfiles-
clean.timer
Command to purge temporary files
(rules for which files are removed are laid out in multiple config files) - Answer -systemd-
tmpfiles --clean
Command to install tuned package AND
Command to enable and start it - Answer -yum install tuned
systemctl enable --now tuned
Command used to change settings of the tuned daemon - Answer -tuned-adm
Command to list all available tuning profiles - Answer -tuned-adm list
Command to switch the active profile to a different one - Answer -tuned-adm profile
PROFILE-NAME
(i.e. tuned-adm profile throughput-performance)
Nice level with the highest priority - Answer --20
Nice level with the lowest priority - Answer -19
Command to report a snapshot of current process - Answer -ps
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 millyphilip. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.49. You're not tied to anything after your purchase.