Self Test

 < Day Day Up > 



The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully, as there may be more than one correct answer. Choose all correct answers for each question. Don't focus exclusively on these questions. There are no longer any multiple choice questions on the Red Hat exams. These questions test your understanding of the chapter. Getting results, not memorizing trivia, is what counts on the Red Hat exams.

Adding, Deleting, and Modifying User Accounts

1. 

When deleting a user account using userdel, which command switch deletes that user's home directory?

  1. -d

  2. -r

  3. -h

  4. -a

   b . the userdel -r username command deletes the user as well as all of the files in the /home/ username directory.   a , c , and d are not real switches for the userdel command.

Answers

1. 

þB. The userdel -r username command deletes the user as well as all of the files in the /home/username directory.
ýA, C, and D are not real switches for the userdel command.

The Basic User Environment

2. 

Where are individual users' configuration files for the KDE window manager stored?

  1. /usr/lib/X11/.kde

  2. ~/.kde

  3. /etc/X11/.kde

  4. /etc/skel/.kde

   b . the tilde (~) is the generic term for each user s home directory. when users are created, these files are transferred from /etc/skel to the right home directory.   a and c are not valid locations for kde configuration files. while the generic kde configuration files are stored in /etc/skel, they do not belong to any particular user ( d ).

Answers

2. 

þB. The tilde (~) is the generic term for each user's home directory. When users are created, these files are transferred from /etc/skel to the right home directory.
ýA and C are not valid locations for KDE configuration files. While the generic KDE configuration files are stored in /etc/skel, they do not belong to any particular user (D).

Red Hat Filesystem Basics

3. 

Which of the following is an advantage of a journaling filesystem such as ext3?

  1. It supports the use of VFAT for floppy disks.

  2. It collects filesystem information in /etc/filesystems.

  3. It allows you to read CDs.

  4. It minimizes the risk if power is lost.

   d . journaling filesystems can speed recovery from a crash, which includes what can happen when power to your computer is lost.   a , b , and c are incorrect. the ext3 filesystem is unrelated to vfat ( a ). the /etc/filesystems file lists currently supported filesystem formats. while that includes ext3, filesystems are not collected by ext3 ( b ). cds are formatted to the iso9660 filesystem, not ext3 ( c ).

Answers

3. 

þ D. Journaling filesystems can speed recovery from a crash, which includes what can happen when power to your computer is lost.
ý A, B, and C are incorrect. The ext3 filesystem is unrelated to VFAT (A). The /etc/filesystems file lists currently supported filesystem formats. While that includes ext3, filesystems are not collected by ext3 (B). CDs are formatted to the ISO9660 filesystem, not ext3 (C).

Filesystem Management and the Automounter

4. 

To change the mount options for a local filesystem, which of the following files would you edit?

  1. /etc/filesystems

  2. /etc/fstab

  3. /etc/group

  4. /etc/mnttab

   b . information regarding filesystems, including mount options, is stored in /etc/fstab.   a , c , and d are incorrect. the /etc/filesystems file lists currently supported filesystem formats ( a ). group information and passwords are documented in /etc/group ( c ). /etc/mnttab ( d ) is an invalid filename.

Answers

4. 

þB. Information regarding filesystems, including mount options, is stored in /etc/fstab.
ýA, C, and D are incorrect. The /etc/filesystems file lists currently supported filesystem formats (A). Group information and passwords are documented in /etc/group (C). /etc/mnttab (D) is an invalid filename.

Using the Red Hat Package Manager Command and Utility

5. 

Which of the following commands correctly installs the package penguin-3.26.i386.rpm?

  1. rpm -I penguin-3.26.i386.rpm

  2. rpm -i penguin

  3. rpm -i penguin-3.26.i386.rpm

  4. rpm --install penguin.rpm

   c , rpm -i penguin-3.26.i386.rpm . when installing a package, the -i option is used, followed by the name of the rpm file.   d is almost correct. it has an incomplete filename for the rpm, but it would otherwise work. b also does not use the full filename. an asterisk at the end would make it work (as in penguin* ), but this would install every package starting with the name penguin, so it may install more than you want. the -i option is invalid with rpm ( a ).

Answers

5. 

þC, rpm -i penguin-3.26.i386.rpm. When installing a package, the -i option is used, followed by the name of the RPM file.
ýD is almost correct. It has an incomplete filename for the RPM, but it would otherwise work. B also does not use the full filename. An asterisk at the end would make it work (as in penguin*), but this would install every package starting with the name penguin, so it may install more than you want. The -I option is invalid with rpm (A).

RPM Sources

6. 

Assume you have the rpm-build RPM installed. When you install a source RPMs, where will you find key files?

  1. /usr/lib/rpm

  2. /usr/src/rpm

  3. /usr/src/redhat

  4. /usr/src/redhat/rpm

   c . when installing srpms, they are, by default, extracted into the /usr/src/redhat directory structure.   a , b , and d are nonexistent files and directories.

Answers

6. 

þC. When installing SRPMs, they are, by default, extracted into the /usr/src/redhat directory structure.
ýA, B, and D are nonexistent files and directories.

Network Configuration

7. 

What information can you find in the /etc/sysconfig/network file?

  1. Your computer's hostname

  2. The devices used for your network connections

  3. Chat scripts for PPP and SLIP connections

  4. The status of the network

   a . if networking is enabled, /etc/sysconfig/network activates networking, contains the hostname, and possibly nis domain name information as well.  this file does not identify the network device, nor will it contain status information or any chat scripts ( b , c , and d ).

Answers

7. 

þA. If networking is enabled, /etc/sysconfig/network activates networking, contains the hostname, and possibly NIS domain name information as well.
ý This file does not identify the network device, nor will it contain status information or any chat scripts (B, C, and D).

The Basic Boot Process

8. 

Upon boot, the kernel starts init. What does init start next?

  1. /etc/rc.d/init.d

  2. /etc/inittab

  3. /etc/rc.d/initdefault

  4. /etc/rc.d/rc.sysinit

   d . init runs /etc/rc.d/rc.sysinit, which performs a number of tasks, including configuring the network and setting up keymapping, swapping, and the host name.   a is a directory. b , /etc/inittab, is the init configuration file, which sets the runlevel at startup. however, /etc/inittab is not a script. while c , /etc/rc.d/initdefault is not a real filename, initdefault is a variable within /etc/inittab that determines the default runlevel of your system.

Answers

8. 

þD. init runs /etc/rc.d/rc.sysinit, which performs a number of tasks, including configuring the network and setting up keymapping, swapping, and the host name.
ýA is a directory. B, /etc/inittab, is the init configuration file, which sets the runlevel at startup. However, /etc/inittab is not a script. While C, /etc/rc.d/initdefault is not a real filename, initdefault is a variable within /etc/inittab that determines the default runlevel of your system.

Virtual Consoles

9. 

To switch to the fourth virtual console from another text console, which keys would you press?

  1. ALT-4

  2. ALT-F4

  3. CTRL-4

  4. CTRL-F4

   b . press alt-f 4. each virtual console has an alt -function key associated with it to move to that virtual console.   a , c , and d normally do not do anything when you are at a regular virtual console.

Answers

9. 

þB. Press ALT-F4. Each virtual console has an ALT-function key associated with it to move to that virtual console.
ýA, C, and D normally do not do anything when you are at a regular virtual console.

Other Configuration Tools

10. 

What types of services can you configure with files in the /etc/sysconfig directory?

  1. All types of services. These files supplement, but do not replace any other configuration files.

  2. Only network services.

  3. Only critical services related to your hardware configuration.

  4. All runlevels.

   a . you can configure red hat services of all types in the /etc/sysconfig directory.   b , c , and d are all incorrect. files in /etc/sysconfig are not limited to network services or hardware configuration. it has nothing to do with configuring runlevels.

Answers

10. 

þA. You can configure Red Hat services of all types in the /etc/sysconfig directory.
ýB, C, and D are all incorrect. Files in /etc/sysconfig are not limited to network services or hardware configuration. It has nothing to do with configuring runlevels.



 < Day Day Up > 



RCHE Red Hat Certified Engineer Linux Study Guide[c] Exam (Rh302)
RCHE Red Hat Certified Engineer Linux Study Guide[c] Exam (Rh302)
ISBN: 71765654
EAN: N/A
Year: 2003
Pages: 194

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