| < 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. This is just to test your understanding of the material; Red Hat no longer includes multiple choice questions on the RHCE or RHCT exams.
1. | The system-wide file associated with the bash shell is:
|
|
Answers
1. | þ C. This is the system-wide shell script executed for all users. |
2. | You are running an ISP service and provide space for users' Web pages. You want them to use no more than 40MB of space, but you will allow up to 50MB until they can clean up their stuff. How could you use quotas to enforce this policy?
|
|
3. | If you wanted to configure quotas for everyone on the /home directory, what would you add to the options in /etc/fstab?
|
|
Answers
2. | þ C. Enable grace periods; set the soft limit to 40MB, and the hard limit to 50MB. This will warn users they are over their limit after the grace period, but will make sure they do not exceed the 50MB true maximum barrier. |
3. | þ B and C. The usrquota and grpquota options allow the configuration of quotas on the given filesystem on user and group bases. |
4. | You are troubleshooting someone else's computer and are not sure what network card is inside it. You have checked the output from the dmesg command, but no network cards are listed, and even though you have a bunch of compiled network modules, none are currently loaded. What could you do to load the unknown network device most quickly?
|
|
5. | You can't find any modules in the /lib/modules/kernel_version/kernel/drivers (or similar) directories. Which of the following actions would set up these modules?
|
|
Answers
4. | þ D. The modprobe -t net command tries each module from the /lib/modules/kernel_version/kernel/drivers/net directory, until it reaches the end of the list or finds a module that works for a network interface. |
5. | þ D. These commands together compile your modules and then place them in the appropriate directory trees. Because these are kernel-related commands, they have to be run from the /usr/src/linux-2.4 directory. |
6. | When you install an updated kernel from a Red Hat RPM, which of the following steps do you need to take?
|
|
Answers
6. | þ D, None of the above. GRUB is automatically updated when you install a new Red Hat kernel from a Red Hat RPM; however, you may want to change the value of default in /etc/grub.conf. A new Initial RAM disk file, initrd-versionnumber, is also added to the /boot directory. You don't need to change /usr/src/linux-2.4/.config file unless you want to recompile this new kernel. |
7. | You're not sure which kernel source tree is active for your Linux computer. Which of the following directories should be linked to that source tree?
|
|
Answers
7. | þ B. The /usr/src/linux-2.4 directory is normally soft-linked to the actual directory with the active kernel source files. |
8. | When compiling a kernel, you've navigated to the /usr/src/linux-2.4 directory. Which of the following would not work with the make command to reconfigure your kernel?
|
|
9. | You have just compiled a new kernel with the make bzImage command. You need to copy the kernel and Initial RAM disk to the /boot directory. What is the most efficient way to make this happen?
|
|
Answers
8. | þ C is correct because there is no kernel configuration utility based on the make windowconfig command. |
9. | þ D. The make install command in RHEL 3 automatically loads the files and data related to your recompiled kernel in the /boot directory. It also installs a new Initial RAM disk and revises the GRUB boot loader. |
10. | You want to schedule a maintenance job to run from your home directory on the first of every month at 4:00 A.M. Which of the following cron entries runs the specified job at the specified time?
|
|
Answers
10. | þ A. The syntax for cron is minute, hour, day of month, month of year, weekday, and then the command. This answer corresponds to 4:00 A.M. on the first of every month. |
| < Day Day Up > |
|