Red Hat Certified System Administrator Study Guide
Red Hat Certified System Administrator Study Guide
Red Hat Certified System Administrator Study Guide
Page 1 of 15
Page 2 of 15
Archive, compress, unpack, and uncompress files using tar, star, gzip, and
bzip2.
Uncompress tar: # tar -xvf file.tar
Unpack zipped tarball: # tar -xzvf file.tar.gz
Uncompress gzip: # gunzip file.gz
Uncompress bzip2: # bunzip2 file.bz2
Uncompress star: # star -xv f=/tmp/file.star
Locate, read, and use system documentation including man, info, and files
in /usr/share/doc.
Page 3 of 15
# man <command
# info <command> navigate to /usr/share/doc to find additional documentation
Note: Red Hat may use applications during the exam that are not included in Red Hat Enterprise
Linux for the purpose of evaluating candidates abilities to meet this objective.
The 1 at the end of the boot string will boot the system to runlevel 1
Page 4 of 15
Page 5 of 15
Page 6 of 15
# cryptsetup luksFormat /dev/sda1 //formats the drive and prompts you to create a passphrase
# cryptsetup luksOpen /dev/sda1 luks01 //opens drive /dev/sda1 and maps it to
/dev/mapper/luks01
# mkfs.ext4 /dev/mapper/luks01 //formats the volume with the ext4 file system.
Now that the LUKS-encrypted volume has been created and formatted it can be added to the
boot process.
Create an /etc/crypttab file.
Add the following line to the file and save it:
luks01 /dev/sda1
the crypttab file will attempt to open the encrypted volume at boot and will prompt you for a
password. If the file is successfully opened its mapped to /dev/mapper/luks01
next add the mapped volume to the fstab
/dev/mapper/luks01 /LUKS ext4 defaults 1 2
Add new partitions and logical volumes, and swap to a system nondestructively.
You need to be careful when editing the /etc/crypttab and /etc/fstab files. Errors could cause you
to have boot problems which my cost valuable time to troubleshoot during the exam. Double
check your work and make backup copies of the files in case you make a mistake.
Page 8 of 15
Page 9 of 15
DHCP Configuration
nano /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="00:16:D4:39:5B:6F"
NM_CONTROLLED="yes"
ONBOOT="yes"
Page 10 of 15
Static IP
DEVICE="eth0"
IPADDR=192.168.1.100
NETMASK=255.255.255.0
HWADDR="00:16:D4:39:5B:6F"
NM_CONTROLLED="yes"
ONBOOT="yes"
DNS1=192.168.1.254
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=RH_PC.com
GATEWAY=192.168.1.254
# service network restart
Options
-n Name of the VM Guest
-r Amount of RAM in MB
vcpus Number of CPUs to be used
-l location of the install files
disk d efine the location for the disk file and its size. The size is in GB
-x location of the kickstart file
This can also be done via virt-manager GUI
Page 12 of 15
Install and update software packages from Red Hat Network, a remote
repository, or from the local file system.
Use yum to update and install packages.
Change passwords and adjust password aging for local user accounts.
Page 13 of 15
passwd
# chage -M 30 tigerwoods //sets the password to expire evert 30 days for user tigerwoods
# chage -E 2012-05-31 tigerwoods //sets the password to expire on 5/31/2012 for user
tigerwoods
Configure a system to use an existing LDAP directory service for user and
group information.
Manage security
Configure firewall settings using system-config-firewall or iptables.
You can open or close ports in the firewall by editing the /etc/sysconfig/iptables file
# cp -Z <user:role:type> // directory copy SELinux context for files. If not specified the file
inherits the contex for the destination directory
Page 15 of 15