Red Hat Linux - Cramsession

Both Red Hat and Caldera had release the certification for their respected products. Since I have not seen anywhere in the net a good study guide, I am putting together this note - an outline of skills (that I believed) that measured by Red Hat Linux certification exam. Hope this can help other by saving their time studying and preparing exams.

Table of Content

Pre-Install

Interrupt Line Device Comments
0 Timer  
1 Keyboard  
2 Cascade to IRQ9 On some systems, IRQ2 is the gateway to IRQs 9~15; avoid it if possible
3 COM2 Can also be COM4, but only one of the two
4 COM1 Can also be COM3, but only one of the two
5 XT hard disk controller, LPT2 Hard disk interface used only on XTs, or alternatively for LPT2 on the unusual machine with LPT2. This is free on most modern PCs, and is the "catch-all" IRQ for bus mice, sound cards, LAN boards, etc.
6 Floppy disk controller  
7 LPT1  
8 Clock  
9 Possible cascade to IRQ2 May not be available
10   Generally available
11   Generally available
12 Motherboard InPort If your PC/laptop has a built-in mouse port, it probably sits here
13 Math Coprocessor This interrupt is required even if your CRU has a numeric coprocessor built in
14 Hard Disk  
15 Unused Generally available

 

Hardware Device Minimum Suggest Comments
Processor
i386 SX without X
i386 DX with X
P166 MMX Its hard to find the processor older than P166 in today market.
Hard Drive 60 MB 1 GB 600 MB for a complete installation
Memory 4 MB
8 MB without X
16 MB with X
 

Installation and troubleshooting

Command Usage
m display help menu
p list current partition table
t change system partition ID
n add new partition
d delete current partition
l list known partition types
q quit without saving changes
w write changes and quit
Partition Name Comment
swap (83) Swap partition are used to support virtual memory. If the system has 16 MB of RAM or less, you must create swap partition. Even you have more RAM, swap is still necessary. The minimum size of swap partition should be equal to your physical RAM, or 16 MB (whichever is larger). Red Hat commend that 32 MB for workstation installation and 64 for server installation
root (82) Root partition is where root directory resides. It only need to contain things necessary to boot your system, as well as system configuration files. 50~80 MB works well for most system
/usr This is where most software on Linux system resides. This partition should be between 200~500 MB, depending on how many packages you plan to install. Any RPM-based package you install later will use this space
/home This is where users' home directories go
/milo Alpha users that will be using MILO to boot their systems should create a 1.5 MB DOS partition where MILO can be copied after the installation is complete.
/usr/local Traditionally, this partition has been used to hold things you wish to keep separate from the rest of your Linux system.
/usr/src Linux kernel sources and sources for RPM-Based packages are stored here
/tmp for temporary files.

 

System Configuration

X Windows System

Linux Shells and Commands / Utilities

Linux Shell Comparison Table

Shell Name Ash Bourne Bash (Bourne Again) Korn C-shell T-shell Zsh
Author Kenneth Almquist   Brian Fox/Chet Ramey Eric Gisin   William Joy (plus 47 others) Paul Falstad
Binary ash sh bash ksh csh tcsh zsh
Build-in command 24   48 42   53 84
Command line options 10   12 20   18 50
Default Prompt  

$

 

$

%

%

 
Home Startup File   $HOME/.profile $HOME/.bashrc $HOME/Profile $HOME/.cshrc $HOME/.tcshrc or .chsrc  
Note   default Linux shell   Korn shell is a commercial Unix shell, in Linux, pdksh shell is named ksh.     One of the largest Linux shell
Command Usage Note
man getting help The Linux manual sections, man1 to man9, are in /usr/man directory.
cd Moving to different directory Knowing what .. and ~ can do together with CD command.
pwd Print working directory  
find Searing directories for matching files -print switch; -xdev switch
whereis find files from files directories  
locate locate files from locate's database - locatedb locatedb is in /var/lib directory
updatedb update locatedb database  
whatis getting command summaries  
makewhatis build the whatis database (db of command summaries) makewhatis is in /usr/sbin directory
apropos search for whatis database to get the program you want man -K option do the same thing
ls listing directories know the -m, -x, -F, -a, -l, -R, -d switches. Know how to use wildcards *.
dir, vdir listing directories  
tree llist graphic directory know the -d option
cat list, create, and combining files know the -n, -l, *, >, >> options and pipes. Know the Ctrl-D to close file.
more read files  
less read files (allow scroll, more options than more) zless command to compress files
head, tail read the beginning and the end of files. Know the -q option
touch create files know how to create file and redirect output to a new file (use with Ls for example.)
rm delete files know the -r, -f, -i  options and wildcards.
mkdir creating directories know how to create multiple directories and create sub directories under exist directories.
rmdir removing directories -p option
mv rename files  
cp copy files  
ln create hard and symbolic links -s option
mc visual shell that display files  
grep, egrep, fgrep, zgrep search inside files (zgrep can search compressed files) be very familiar with grep command
tar create archives -c, -w, -t, -f, -v, -x options and combination
cpio copies files in and out of tar or cpio archives  
gzip, gunzip compress and uncompress files be familiar with files that has .Z, .z,  .gz, -gz, -z, _z extension
compress compress files  
ps process status command  
kill terminate process  
Ctrl-z put a running program into background in bash shell  
fg bring back the program from background return a specific program using job number or job name. Example: fg %x (x=job number, or job name)
pine a Linux mail program In KDE, use k-mail
job get a list of suspended programs  
sc a Linux spreadsheet program  
mount, umount mount an unmount other file system  

Linux Networking 

System Administration and Security

Special thanks to Rick Bao for contributing this Cramsession
http://www.cyberramp.net/~rickbao/