Powered By Pakdatabase.com

RED HAT CERTIFIED ENGINEER (RHCE) Study Guide

 

Table of Content
  • Pre-Install
  • Installation and troubleshooting
  • System Configuration
  • X Window System
  • Linux Shells and Commands/Utilities
  • Networking
  • System Administration and Security

Pre-Install

  • Determine your Linux system's role in your network: WWW, FTP, NEWS, ISP, development workstation, thin client, enterprise server, application server, database server, etc.
  • Collect hardware information: check out Red Hat 5.x HCL. Be familiar with the model and parameter of your hardware devices: keyboard, monitor (horizontal/vertical frequencies), mouse type (serial, PS/2, or bus mouse), protocol (Microsoft, Logitech, MouseMan, etc.), and number of buttons; printer, hard drive (IDE, EIDE, SCSI, Cylinder/head/sector geometry), sound card, video card, PC-Card (PCMCIA) etc.
  • If you have IDE drives, you should check your computer's BIOS to see if you are accessing them in LBA mode.
  • Collect network information: hostname, domain name, IP address, netmask, default gateway, primary and secondary name server, NFS server (optional), FTP server (optional).
  • Be familiar with what packages that Red Hat comes with, so you can choose these during installation.
  • Read the Linux hardware HOWTO (in Red Hat CD:\DOC\HOWTO) to clarify the hardware compatibility issue.
  • Review IRQ settings and plan the IRQ layout. This table lists the standard IRQ layouts:

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 CPU has a numeric coprocessor built in

14

Hard Disk

 

15

Unused

Generally available

 

  • Hardware requirement for Red Hat 5.x installation:

Hardware Device

Minimum

Suggest

Comments

Processor

i386 SX without X

i386 DX with X

P166 MMX

It's hard to find a processor older than a P166 in today's market.

Hard Drive

60 MB

1 GB

600 MB for a complete installation

Memory

4 MB

8 MB without X

16 MB with X

 

  • Create installation boot disk and supplemental diskette using rawrite program - location on CD is: \dosutils\rawrite.exe
  • If Linux is to coexist with other OSs, create available hard drive space using fips utility (a program similar to Partition Magic). Location on CD: \dosutils\fips.exe
  • Linux's primary file system is EXT2, and SWAP (for SWAP files).
  • Linux supports plug and play.

Installation and troubleshooting

  • Use F3 key to go to expert mode - disables most of the auto probing and auto detection.
  • Use F4 key, and both boot and supplemental disks to repair a damaged system.
  • Use F6 key to pass some options to the kernel at the boot time. Example:
    boot: linux mem=128M will instruct the kernel to use 128MB system RAM.
  • Red Hat 5.x Linux Kernel file name is vmlinuz. It's on the Boot disk and is less than 500 KB.
  • initrd.img file is first loaded by system
  • To install on the machine without CD-ROM: copy \RedHat\ directory tree from CD-ROM over Network to the hard drive before install.
  • If IDE CD-ROM is not being detected, restart the installation process, key in instruction to kernel: boot: linux hdX=cdrom (X=a if CD-ROM is in ide0 master; X=b if CD-ROM is in ide0 slave; X=c if CD-ROM is in ide1 master; X=d if CD-ROM is in ide1 slave. Where ide0=primary channel and ide1=secondary channel).
  • Partition disk using Disk Druid during installation. Know what is the Mount Point, Device, Requested, Actual, Type, and how to specify the particular parameter for them. Know Driver summary, especially what Geom [C/H/S] means. (Cylinders, Heads, Sectors).
  • / and swap are default partitions to specify when using Disk Druid.
  • Partition disk using fdisk during installation. Be familiar with following commands and their usages:

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 (82)

Swap partitions are used to support virtual memory. If the system has 16 MB of RAM or less, you must create a swap partition. Even if you have more RAM, swap is still necessary. The minimum size of a swap partition should be equal to your physical RAM, or 16 MB (whichever is larger). Red Hat recommends 32 MB for workstation installation and 64 for server installation

root (83)

Root partition is where the root directory resides. It only needs to contain things necessary to boot your system, as well as system configuration files. 50~80 MB works well for most systems

/usr

This is where most software on Linux systems 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

1.        The standard Red Hat kernel configuration

2.        Code maturity level options

3.        Loadable module support options

4.        General set up options

5.        Floppy, IDE and other block device options

6.        Non IDE/SCSI CDROM support options

7.        Networking and network device options

8.        SCSI support options and low level drivers

9.        ISDN options

10.     File system options

11.     Character device options (serial and parallel ports, mice, QIC tapes, APM)

12.     Sound system support options

13.     Kernel profiling support

X Windows System

Linux Shells and Commands / Utilities
  • Determine which shell the user has been assigned - look at the contents of /etc/passwd file.

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

Built-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/<WBR.CSHRC< font>

$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 shells

  • Understand what is an environment variable and where the configuration text file is located on your shell (example, for bash shell, is in /etc/profile). Specify the list of different environment variables by using printenv command.
  • Understand #PATH variable. Know how to make temporary and permanent change of the #PATH variable. (Add the directory to your $PATH variable for the current login. Make a permanent change by adding the path to the profile file - say, .bash_profile in home directory.)
  • Know what an alias is, and how to customize shells using an alias.
  • Know how to run the program in the background. Example: rxvt &
  • Know how to use pipe to redirect output of a program to a file, and redirect the content of the file to another program.
  • Know how to build your own shell commands using chmod command. Assign shell variables to represent command line arguments to a shell command.

Basic Linux Commands and Utilities

Be familiar with the commands and utilities in this table. Check the man page for detailed usage, such as switch, pipe, etc.

 

Command

Usage

Note

man

get help

the Linux manual sections, man1 to man9, are in /usr/man directory.

cd

move to a different directory

know what .. and ~ can do as parameters to the CD command.

pwd

print working directory

 

find

search 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

get 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 does the same thing

ls

list files and directories

know the -m, -x, -F, -a, -l, -R, -d switches. Know how to use wildcards * and .

dir, vdir

list directories

 

tree

list graphic directory

know the -d option

cat

list, create, and combine files

know the -n, -l, *, >, >> options and pipes. Know Ctrl-D to close file.

more

read files

 

less

read files (allows scrolling, have more options than the more command)

use 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 a 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

create directories

know how to create multiple directories and create sub directories under existing 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

copy files in and out of tar or cpio archives

 

gzip, gunzip

compress and uncompress files

be familiar with files that have a .Z, .z,  .gz, -gz, -z, _z extension

compress

compress files

 

ps

process status command

 

kill

terminate a process

 

Ctrl-z

put a running program into background in bash shell

 

fg

bring back a 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 or unmount a file system

 

 

Linux Networking 

System Administration and Security

1.       Import and export restrictions on encryption software

2.       The ftp.replay.com site

3.       Validating RPMs with pgp

 

1