Professional Documents
Culture Documents
Rhcsa Cheatsheet PDF
Rhcsa Cheatsheet PDF
will be taking
the EX200 exam here in a few days, and thus didn’t officially join the 2012 Red Hat Study Buddy
group, however he wanted to share his rapid-fire study guide for others to benefit from.
The study notes are in capsule form and follow C.D.’s understanding of the Ex200 objectives. They
can be a good guide for anyone looking to evaluate their own readiness for the official exam.
Please understand that these notes were compiled by an individual in preparation for taking the
RHCSA exam. This is simply a study guide that attempts to provide answers and information based
on the ‘exam objectives’ provided on Red Hat’s website. This information does not provide specific
information about what is or what is not on the RHCSA exam. This is not a “brain dump” or some
other form of cheat sheet.
Some simple RegEx rules. (A complete understanding of Regular Expressions is beyond the
scope of this document.)
Create and configure LUKS-encrypted partitions and logical volumes to prompt for password
and mount a decrypted files system at boot
Configure systems to mount file systems at boot by Universally Unique ID (UUID) or label
Add new partitions and logical volumes, and swap to a system non-destructively
The fdisk and parted commands are interactive and have their own built-in help files.
Consult man pages for further options.
pvcreate /dev/hd physicalvolume: Create a physical volume from device.
vgcreate volumegroup /dev/hd: Create a volume group from a physical volume.
lvcreate -L size -n logicalvolume logicalvolumegroup: Create a logical volume of size in
volume group.
swapon -s: Displays swap devices currently on system.
swapon -v /dev/hd: Add swap device to system.
Configure systems to mount ext4, LUKS-encrypted, and network file systems automatically
yum -y install httpd && chkconfig httpd on && service httpd start: Install and start httpd,
and set to start on boot.
/var/www/html: Location of files served by HTTP server.
Firewall: Open ports 80 for HTTP and 443 for HTTPS, using iptables.
SELinux: Make sure SELinux contexts are correct for all files server, ‘man httpd_selinux’
for more various options.
Configure a system to run a default configuration FTP server
yum -y install vsftpd && chkconfig vsftpd on && service vsftpd start: Install and start
vsftpd, and set to start on boot.
/var/ftp: Location of files served by FTP Server.
Firewall: Open ports 20 and 21 for FTPD, using iptables.
SELinux: Make sure SELinux contexts are correct for all files server, ‘man ftpd_selinux’ for
more various options.
Install and update software packages from Red Hat Network, a remote repository, or from the
local file system
Change passwords and adjust password aging for local user accounts
Configure a system to use an existing LDAP directory service for user and group information
7) Manage security
Configure firewall settings using system-config-firewall or iptables
semanage fcontext -a -t context “/dir(/.*?)”: Sets the SELinux context of a directory and it’s
contents.
restorecon -F -R -v /dir: Recursively restores SELinux context of a directory and it’s
contents.
Use boolean settings to modify system SELinux settings
getsebool -a: Lists all SELinux boolean settings and current status.
setsebool -P boolean on: Sets SELinux boolean to on.
getsebool -P boolean off: Sets SELinux boolean to off.
togglesebool boolean: Toggles SELinux boolean on or off.
ausearch -m avc -c command: Search for SELinux policy violations associated with
command.
sealert -a /var/log/audit/audit.log: Detaild descriptions of SELinux policy violations found in
log.
/var/log/audit/audit.log: Log file containing information about SELinux policy violations.