Self Test


The following questions will help you measure your understanding of the material presented in this chapter. As no multiple choice questions appear on the Red Hat exams, no multiple choice questions appear in this book. These questions exclusively test your understanding of the chapter. It is okay if you have another way of performing a task. Getting results, not memorizing trivia, is what counts on the Red Hat exams. There may be more than one answer for many of these questions.

As this chapter contains references to many other chapters in this book, some of the questions here require knowledge from reading other chapters.

Troubleshooting Strategies

1. 

What runlevel options are there if you do not want to boot into runlevels 0, 2, 3, 4, 5, or 6?

__________________________________________________________________

__________________________________________________________________

__________________________________________________________________

image from book

2. 

If linux rescue mode successfully finds an existing RHEL installation, where is it mounted?

__________________________________________________________________

image from book

Answers

1. 

If you do not want to boot into runlevels 0, 2, 3, 4, 5, or 6, you can boot into runlevels 1, s, or emergency; you can also boot with the init=/bin/sh command appended to the end of the kernel command line.

2. 

If linux rescue mode successfully finds an existing RHEL installation, it is mounted on the /mnt/sysimage directory.

Required RHCT Troubleshooting Skills

3. 

If you want to set network card eth0 to acquire IP address information from a DHCP server, what directive would you use in /etc/sysconfig/network-scripts/ifcfg-eth0?

__________________________________________________________________

image from book

4. 

What files are associated with hostname configuration during the boot process?

__________________________________________________________________

__________________________________________________________________

image from book

5. 

If you want to start from scratch and create a new xorg.conf configuration file, what command would you use?

__________________________________________________________________

image from book

6. 

If you want to set up a default application in the X Window that will work for both GNOME and KDE, what file or directory would you change?

__________________________________________________________________

image from book

7. 

What command formats /dev/sda5 to the ext3 filesystem?

__________________________________________________________________

the command that formats /dev/sda5 to the ext3 filesystem is mkfs.ext3 /dev/sda5 .

Answers

3. 

If you want to set network card eth0 to acquire IP address information from a DHCP server, you would use the BOOTPROTO=dhcp directive in /etc/sysconfig/network-scripts/ifcfg-eth0.

4. 

The files that determine the hostname when you boot Linux are /etc/hosts and /etc/sysconfig/ network.

5. 

If you want to start from scratch and create a new xorg.conf configuration file, you could use the system-config-display command to create it in the appropriate /etc/X11 directory. Alternatively, if you use the Xorg -configure command, you'll have to copy xorg.conf from the local directory to /etc/X11.

6. 

If you want to set up a default application in the X Window that will work for both GNOME and KDE, you would change /etc/X11/xinit/xinitrc or files in the /etc/X11/xinit/xinitrc.d/ directory.

7. 

The command that formats /dev/sda5 to the ext3 filesystem is mkfs.ext3 /dev/sda5.

Required RHCE Troubleshooting Skills

8. 

Other than possibly the version number of the kernel, what's wrong with the following line from /boot/grub/grub.conf?

 kernel vmlinuz-2.6.18-8.el5 ro root=LABEL=/dev/hda2 rghb quiet 

__________________________________________________________________

image from book

9. 

What's wrong with the following line from /boot/grub/grub.conf?

 initrd /initrd 2.6.18-8.el5 

__________________________________________________________________

image from book

10. 

If you have a problem with the Samba configuration file and suspect a syntax error, what command would you use?

__________________________________________________________________

image from book

11. 

If you have a problem with the Apache configuration file and suspect a syntax error with virtual hosts, what command would you use?

__________________________________________________________________

image from book

12. 

What command increases the size of an existing LV, /dev/thisvg/lvol1, by 1000MB, using space available from a properly configured /dev/sda10 device?

__________________________________________________________________

image from book

Answers

8. 

The line from /boot/grub/grub.conf is missing the forward slash in front of /vmlinuz-2.6.18-8.el5; it's the /boot directory as defined by the root(hd0,0) (or similar) directive. It should read as follows:

 kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/dev/hda2 rghb quiet 

9. 

The line from /boot/grub/grub.conf is missing the .img extension at the end of the initial RAM disk file; it should read as follows:

 initrd /initrd 2.6.18-8.el5.img 

10. 

If you have a problem with the Samba configuration file and suspect a syntax error, you would use the testparm command.

11. 

If you have a problem with the Apache configuration file and suspect a syntax error with virtual hosts, you could use either of the following commands:

 # httpd -S # httpd -t -D DUMP_VHOSTS 

12. 

The command that increases the size of an existing LV, /dev/thisvg/lvol1, by 1000MB, using space available from a properly configured /dev/sda10 device, is shown here:

 # lvextend -L +1000 /dev/thisvg/lvol1 /dev/sda10 



RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302)
Linux Patch Management: Keeping Linux Systems Up To Date
ISBN: 0132366754
EAN: 2147483647
Year: 2004
Pages: 227
Authors: Michael Jang

Similar book on Amazon
Linux Quick Fix Notebook
Linux Quick Fix Notebook
Self-Service Linux: Mastering the Art of Problem Determination
Self-Service Linux: Mastering the Art of Problem Determination
RHCSA/RHCE Red Hat Linux Certification Study Guide (Exams EX200 & EX300), 6th Edition (Certification Press)
RHCSA/RHCE Red Hat Linux Certification Study Guide (Exams EX200 & EX300), 6th Edition (Certification Press)
Security Strategies in Linux Platforms and Applications (Information Systems Security & Assurance)
Security Strategies in Linux Platforms and Applications (Information Systems Security & Assurance)

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net