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.
|
When deleting a user account using userdel, which command switch deletes that user's home directory?
-d
-r
-h
-a
|
Answers
|
þ 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. |
|
Where are individual users' configuration files for the KDE window manager stored?
/usr/lib/X11/.kde
~/.kde
/etc/X11/.kde
/etc/skel/.kde
|
Answers
|
þ 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
|
þ 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). |
|
To change the mount options for a local filesystem, which of the following files would you edit?
/etc/filesystems
/etc/fstab
/etc/group
/etc/mnttab
|
Answers
|
þ 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. |
|
Which of the following commands correctly installs the package penguin-3.26.i386.rpm?
rpm -I penguin-3.26.i386.rpm
rpm -i penguin
rpm -i penguin-3.26.i386.rpm
rpm --install penguin.rpm
|
Answers
|
Assume you have the rpm-build RPM installed. When you install a source RPMs, where will you find key files?
/usr/lib/rpm
/usr/src/rpm
/usr/src/redhat
/usr/src/redhat/rpm
|
Answers
|
þ 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. |
|
What information can you find in the /etc/sysconfig/network file?
Your computer's hostname
The devices used for your network connections
Chat scripts for PPP and SLIP connections
|
Answers
|
þ 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). |
|
Upon boot, the kernel starts init. What does init start next?
/etc/rc.d/init.d
/etc/inittab
/etc/rc.d/initdefault
/etc/rc.d/rc.sysinit
|
Answers
|
þ 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. |
|
To switch to the fourth virtual console from another text console, which keys would you press?
ALT-4
ALT-F4
CTRL-4
CTRL-F4
|
Answers
|
þ 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. |
|
What types of services can you configure with files in the /etc/sysconfig directory?
All types of services. These files supplement, but do not replace any other configuration files.
Only network services.
Only critical services related to your hardware configuration.
|
Answers
|
þ 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. |