Documente Academic
Documente Profesional
Documente Cultură
will be taking
the EX200 exam here in a few days, and thus didnt 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 Hats 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.
fdisk: Deprecated utility for manipulating primary, extended, and logical partitions.
parted: Current utility for manipulating primary, extended, and logical partitions.
The fdisk and parted commands are interactive and have their own built-in help files.
Consult man pages for further options.
Create and remove physical volumes, assign physical volumes to volume groups, and create
and delete logical volumes
pvcreate /dev/hd: Create physical volume from device.
pvremove /dev/hd: Remove physical volume from an LVM.
vgextend volumegroup /dev/hd: Create volume group with physical volume or add physical
volume to existing volume group.
vgreduce volumegroup /dev/hd: Remove physical volume from volume group.
lvcreate -L size volumegroup: Create a new logical volume from volume group.
lvdisplay volumegroup: Display information about volume group.
lvremove /dev/volumegroup/volume: Remove a logical volume from volume group.
Create and configure LUKS-encrypted partitions and logical volumes to prompt for password
and mount a decrypted files system at boot
dd if=/dev/urandom of=/dev/hd bs=1M: Fill physical volume with random data.
cryptsetup luksFormat /dev/hd: LUKS-encrypt physical volume.
cryptsetup luksOpen /dev/hd label: Label LUKS-encrypted physical volume.
mkfs.ext4 /dev/mapper/label: Format labelled LUKS-encrypted physical volume.
/etc/crypttab: Configuration file for LUKS-encrypted volumes.
/etc/fstab: Configuration file for volumes mounted by system.
mount: Displays all volumes currently mounted on system.
mount -a: Mount all volumes defined in /etc/fstab
fstab entries are space delimited: device mountpoint fstype options dump fsck
fstab example: /dev/sda1 / ext4 defaults,acl 1 1
cryptab entries are space delimited: label device
cryptab example: cryptvolume /dev/sdb1
Configure systems to mount file systems at boot by Universally Unique ID (UUID) or label
blkid: Find the UUID of a device.
e2label /dev/mapper/volume label: Label a volume.
umount /dev/hd: Unmount a device.
/etc/fstab: Configuration files for volumes mounted by system.
fstab entries are space delimited: device mountpoint fstype options dump fsck
fstab example: /dev/sda1 / ext4 defaults,acl 1 1
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.
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
rhn_register: Register system with Red Hat Network.
yum install package: Install package from yum repository.
/etc/yum.repos.d: Directory containing information relating to yum repos.
rpm -Uvh package.rpm: Upgrades RPM package from local file system.
rpm -ivh package.rpm: Installs RPM package from local file system.
Update the kernel package appropriately to ensure a bootable system
Never update the kernel package, always install a new kernel.
rpm -ivh kernel.rpm: Installs a new kernel from an rpm package.
yum install kernel: Installs a new kernel from a yum repository.
Modify the system bootloader
/boot/grub/grub.conf: Configuration files for system boot loader.
7) Manage security
Configure firewall settings using system-config-firewall or iptables
system-config-firewall: GUI program for modifying firewall settings.
IPTables are complex when used from the command line. Using the system-config-firewall
or setup are your best options for the simple firewall configurations required for the
RHCSA exam.
Set enforcing and permissive modes for SELinux
getenforce: Display SELinux enforcing mode.
setenforce #: Toggle SELinux enforcing mode on or off.
/etc/selinux/config: Make permanent changes to SELinux enforcing mode.
List and identify SELinux file and process context
ls -lZ: List file permissions, with SELinux information.
ps -Zu user: List all processes running as user, with SELinux information.