0% found this document useful (0 votes)
2K views5 pages

RHCE Flash Cards Condensed

Information for Linux System Administrators interested in Redhat Linux, and preparing for the RHCE exam. Study notes for the RHCE exam for RHEL 5 and above. Condensed version of the systemnotes.org RHCE Flashcards. Helps to memorize common linux commands and procedures.

Uploaded by

Scott M.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views5 pages

RHCE Flash Cards Condensed

Information for Linux System Administrators interested in Redhat Linux, and preparing for the RHCE exam. Study notes for the RHCE exam for RHEL 5 and above. Condensed version of the systemnotes.org RHCE Flashcards. Helps to memorize common linux commands and procedures.

Uploaded by

Scott M.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Systemnotes.org RHCE Study Guide for RHEL5 v1.

Page 1 of 5
Systemnotes.org RHCE Study Guide for RHEL5 v1.1

RHCE Study Notes – Systemnotes.org Cron and at Jobs


RedHat Linux Flash Cards, v 1.1, 2009/07/29 • copy script to /etc/cron.daily, /etc.cron.monthly
Stuff to remember: • Modify /etc/crontab: crontab -e
• Look at the latest objectives for the exam. • List cron jobs: crontab -l
• Remember the commands required. • Add an at job: at [-f file] TIME
• If you don't understand a section, take that as a • View at queue: atq
clue that you need further study. • Remove at jog: atrm job
• Practice, practice, practice!
Install NIS or LDAP
Boot Single • Install ypbind, portmap
boot into single user mode • system-config-authentication
• at grub screen, "a", "space", "1", enter • check: Enable NIS Support, or Enable LDAP
Support
Network Configuration • click: Configure NIS..., or Configure LDAP...
• system-config-network • configure firewall, if required
Files
• /etc/sysconfig/network-scripts/ifcfg-eth0 Test NIS or LDAP
• /etc/sysconfig/network • ypwhich
• nisdomainname -y
Hostname Resolution
• genent services
• /etc/resolv.conf
• getent passwd smith
• /etc/hosts
• rpcinfo -p
X Window System
NIS or LDAP Files
• /etc/X11/xinit/xinitrc.d
• /etc/yp.conf
• /etc/X11/xorg.conf
• /etc/sysconfig/network
• /etc/inittab
• /etc/pam.d/system-auth
• system-config-display
• /etc/nsswitch.conf
• /tmp and /home have enough space
• Ctrl-Alt-F1 to F8 Configure autofs
• Ctrl-Alt-Backspace • /etc/auto.master
◦ /home/guests /etc/auto.guests --
Hard Disk Commands timeout=60
• fdisk /dev/hda • /etc/auto.guests
• partprobe ◦ * -rw,soft,intr
• mdadm -C /dev/md0 -l 5 -n 3 /dev/hda6 server1:/home/guests/&
/dev/hda7 /dev/hda8 • service autofs restart
• mke2fs -j /dev/md0 • chkconfig portmap on
• e2label /dev/hda2 /data • chkconfig autofs on
• mount -t ext3 /dev/hda7 /data7
Manage Users, and Groups
Configure Printing • groupadd -g 1000 groupname
• system-config-printer • useradd username
• /etc/cups/cupsd.conf • usermod -G groupname username
• lpadmin ◦ (-G for primary group)
• lpstat, lpq
• reject disable
• accept /usr/bin/enable

Page 2 of 5
Systemnotes.org RHCE Study Guide for RHEL5 v1.1

Manage Quotas Diagnose and Correct Boot Failures


• quotacheck -cuf /home • /etc/rc.d/rc.sysinit
• quotaon /home • /etc/rc.d/rc adn /etc/rc.d/rc?.d
• edquota username • /etc/rc.d/rc.local
• quota username • /boot/grub/grub.conf
• repquota /home • filesystem
• /etc/fstab
Filesystem Permissions • fsck /dev/hda
• mkdir -p /depts/finance
• chgrp sales /depts/finance Create a Logical Volume
• chmod 770 /depts/* • First create physical volume, then volume
• chmod g+s /depts/* group, then logical volume PV -> VG -> LV
• chown sam /depts/managers • pvcreate /dev/hda6 /dev/hda7 /dev/hda8
• ls -l /depts/ • vgcreate vg0 /dev/hda6 /dev/hda7
• lvcreate -L 500M -n data0 vg0
Install and Update rpms • ext2online /dev/vg0/data0
• rpm -ivh filenamex.i386.rpm • SELinux
• rpm -Uvh filenamex.i386.rpm • getenforce
• Verify an RPM: • setenforce 1
◦ rpm --import /usr/share/rhn/RPM-GPG-KEY • check context with ls -Z
◦ rpm -K /tmp/rpmversion.i386.rpm • chcon -R --reference /var/www/html
/var/www/html/wwwnew
Install from yum Repository
• /etc/yum.conf Configure HTTP
• /etc/yum.repos.d/ • install httpd
• modify /etc/httpd/conf/httpd.conf file
System Bootloader • service httpd restart
/boot/grub/grub.conf • chkconfig httpd on
• # root (hd0,0) • service httpd configtest
• # kernel /vmlinuz-version ro
root=/dev/vg00/lv00 crashkernel=128M@16M Configure Samba Share
• # initrd /initrd-version.img • Install samba
• vi /etc/samba/smb.conf
Implement Software RAID • configure firewall
• partprobe
• mdadm -C /dev/md0 -l 5 -n 3 /dev/hda6 NFS
/dev/hda7 /dev/hda8 • Modify /etc/exports
• mke2fs -j /dev/md0 • start nfs & portmap
• /etc/fstab • verify config, & check mounts
• mdadm --detail /dev/md0 • exportfs -v
• fail, recover, add: • showmount -e localhost
◦ mdadm /dev/md0 -a /dev/sda1 • rpcinfo -p localhost
• service nfs reload
Set Kernel Run-time Parameters
• vi /etc/sysctl.conf
• xxx.xx.xxx=1
• sysctl -p
• sysctl -a | grep xxx

Page 3 of 5
Systemnotes.org RHCE Study Guide for RHEL5 v1.1

Automount NTP
• mkdir /net • /etc/ntp.conf
• vi /etc/auto.master • ntpstat
• start services -- portmap, autofs • service ntpd restart

FTP Firewall
• install vsftpd • /etc/sysconfig/iptables
• create incoming directory • iptables -L
• mkdir -p /var/ftp/incoming • iptables -F
• vi /etc/vsftpd/vsftpd.conf • service iptables save
• start vsftpd • service iptables restart
• service vsftpd start • chkconfig iptables on

Web proxy PAM


• Install squid, and start the service • /lib/security/
• vi /etc/squid • /etc/pam.d/
• service squid reload
• Configure browser to test Configure Service
• Install RPM
SMTP • rpm -ivh servicename.rpm
• Install sendmail, sendmail-cf, sendmail-doc • Modify Configuration and Firewall
• modify /etc/mail/sendmail.mc • Start Service
• m4 sendmail.mc > sendmail.cf (or make) • service servicename restart
• service sendmail restart • Set Service to Start on Reboot
• chkconfig servicename on
IMAP, IMAPS, and POP3
• install dovecot
• vi /etc/dovcot.conf
• protocols = xxx
• service dovecot restart
• chkconfig dovecot on

SSH
• /etc/ssh/
• ~/.ssh/

DNS
Install bind, bind-utils, and caching-nameserver
• vi /etc/named.conf
To verify:
• named-checkconf
• named-checkzone example.com
example.com.zone
• Check /etc/resolv.conf on client machines

Page 4 of 5
Systemnotes.org RHCE Study Guide for RHEL5 v1.1

Page 5 of 5

You might also like