LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1590|回复: 2

20道有关第六章认证测试题

[复制链接]
发表于 2003-1-29 13:45:12 | 显示全部楼层 |阅读模式
QUESTION 1/20:
You are almost finished building a new router for your company. You have both network cards properly set up to two different networks. Each side can successfully ping its network card, but neither side can ping the other network. After checking your firewall and forwarding rules, you feel they are set up correctly. All the kernel configuration settings such as IP Firewalling are enabled. What is most likely the problem?
  A. You didn't load the router module.
  B. You need to enable the environmental variable, ENABLE_ROUTING=1
  C. You need to add a "1" to the kernel variables file /proc/sys/net/ipv4/ip_forward
  D. None of the above.
ANSWER:
C: You need to add a "1" to the kernel variables file /proc/sys/net/ipv4/ip_forward. By default, routing is not enabled by the kernel. To enable it, you can simply add a "1" to this file with the following command: echo 1 > /proc/sys/net/ipv4/ip_forward.  

QUESTION 2/20:
Which one of these kernels is a developers kernel?
  A. 2.0.0?
  B. 1.2.25
  C. 2.3.4
  D. 3.0.13
ANSWER:
C: The second number determines if it is a stable release or a developers kernel. If the second number is an odd number, then it is a developers kernel. If it is an even number, then it is a stable kernel release.


QUESTION 3/20:
You recently received a notice from your legal department. They want all servers to have a message to thwart off unauthorized access at the login prompt. How would you go about doing this? (Choose all that apply.)
  A. Modify /etc/banner.net
  B. Modify /etc/issue
  C. Modify /etc/issue.net
  D. Modify /etc/login.msg
ANSWER:
B, C: Modify /etc/issue and /etc/issue.net. The /etc/issue file is used to log in on locally to the machine. The /etc/issue.net file is used when connecting remotely to a PC.  

QUESTION 4/20:
You are compiling a new kernel for a machine with an older BIOS that does not support large hard drives. The hard drive you plan to use is 4GB. Below is a simple description of your partitions: /boot(15 Meg), /usr (1 Gig), /home(1.9 Gig), / (1 Gig). Where could you place the kernel to avoid problems with the older BIOS?
  A. /usr/src/linux/arch/i386/boot
  B. /usr/src/linux
  C. /
  D. /boot
ANSWER:
D: /boot. Boot is a small partition that the BIOS can recognize and boot from. Once the kernel has loaded, it can then use the rest of the large disk.

QUESTION 5/20:
You have just compiled a new kernel and you want to set up LILO to boot your new kernel by default but still have the option to boot the old kernel if necessary. You have already copied your kernel to the /boot directory. What section do you need to add to the /etc/lilo.conf file?
  A. Boot=  
  B. Image=  
  C. Install=
  D. Map=
ANSWER:
B: image=. You will need to add another image= before the image= section. The rest of the options can stay the same.  

QUESTION 6/20:
When compiling a kernel, what are the valid configuration options used by make? (Choose all that apply.)
  A. Config
  B. Menuconfig
  C. Windowconfig
  D. Xconfig
ANSWER:
A, B, D: Config menuconfig and xconfig. Config is a basic text-based utility. Menuconfig is a text-based menu utility, and xconfig is a graphical X Windows utility.

QUESTION 7/20:
What command could you use to easily create a rescue disk for your system?
  A. Fdrescue  
  B. Mkrescuedisk  
  C. Mkbootdisk  
  D. None of the above
ANSWER:
C: mkbootdisk. This command will allow you to make a boot disk for your system that has the option of typing rescue at the LILO prompt.

QUESTION 8/20:
Which commands would you NOT execute when building a monolithic kernel? (Choose all that apply.)
  A. Make bzImage
  B. Make lilo
  C. Make modules  
  D. Make modules_install
ANSWER:
C, D: Make modules and make modules_install. These two commands are only necessary when building a modular kernel. A monolithic kernel contains all the drivers directly in the main kernel itself.  

QUESTION 9/20:
Your system currently boots into runlevel 3. After looking into the /etc/rc.d/rc3.d/ directory, you want to know what script will run first. Of the following links, what script will be the first to run when entering runlevel 3?
  A. K20rwhod
  B. S30syslog
  C. K96pcmcia
  D. S99linuxconf
ANSWER:
B: S30syslog. Links that begin with a "S" will start a service when entering a runlevel, while links that begin with a "K" will kill a service. The earlier number will load first.

QUESTION 10/20:
The directory system for PAM and the older PAM configuration file are almost the same format. The older configuration file contains an additional column of information that is not in the directory-style PAM setup. What is the additional column?
  A. Module-type
  B. Module-path
  C. Service-name
  D. Service-path
ANSWER:
C: Service-name. You need to specify the service name with the /etc/pam.conf file because there is only one file for all of the different services. This is not necessary with the directory structure because each file's name is also the service's name.

QUESTION 11/20:
You have several users on your system. You want to restrict their disk space in their home directory, but because of the complexity of some of their programs, they need large temporary space. How could you restrict their disk usage in their home directories, but allow them unlimited access to the /tmp directory?
  A. Use edquota /home to edit the users' quota for their home directory.
  B. Use edquota and specify only the home directories in the text file.
  C. Mount the /tmp directory to a separate partition and use edquota on the partition that contains the home directory.
  D. None of these options will work.
ANSWER:
D: Mount the /tmp directory to a separate partition and use edquota on the partition that contains the home directory. You can only specify one quota per partition. If you move /tmp to its own partition, you can control it separately.

QUESTION 12/20:
Where could you look to find out how Pluggable Authentication Modules (PAM) are installed on your system? (Choose all that apply.)
  A. /etc/pamd.conf
  B. /etc/pam.conf
  C. /etc/pam.d/
  D. /etc/pamd.conf/
ANSWER:
B, C: /etc/pam.conf file and /etc/pam.d/ directory. The older version of Red Hat uses the /etc/pam.conf, while the newer version uses the directory system, /etc/pam.d/.

QUESTION 13/20:
The CIO of your company wants to see a full report on how much disk space each user on the system is using up. What command would you use to display this information?
  A. Repquota -a
  B. Quotareport -a
  C. Quotareport -all  
  D. Quotashow -a
ANSWER:
A: repquota will display a report of all users on your system. It shows the used space and their soft and hard limits.  

QUESTION 14/20:
What is the difference between a required PAM module and a module that is a requisite?
  A. If a user fails to authenticate a required section, then he will be immediately rejected.
  B. If a user fails to authenticate at a requisite section, then he will be immediately rejected.
  C. Requisite sections are accumulated, and after all the requisites are checked, if one fails then access is denied.
  D. None of the above.
ANSWER:
C: Requisite sections are accumulated, and after all the requisites are checked, if one fails then access is denied.  

QUESTION 15/20:
What does the command: mkinitrd /boot/initrd 2.0.35 do?
  A. Creates a list of kernel modules for kernel 2.0.35.
  B. Appends the system's /boot/initrd to kernel 2.0.35.
  C. Nothing, because the /boot directory is only referenced by the kernel during boot time.
  D. Creates an initial ramdisk to load necessary modules during boot time.
ANSWER:
D: Creates an initial ramdisk to load necessary modules during boot time.  

QUESTION 16/20:
You want to schedule a maintenance job to run on the first of every month at 4:00 A.M. Which of the following cron entries are correct?
  A. 00 4 1 * * ~/maintenance.pl
  B. 4 1 * * ~/maintenance.pl
  C. 0 4 31/1 * * ~/maintenance.pl
  D. 1 4 00 ~/maintenance.pl
ANSWER:
A: 00 4 1 * * ~/maintenance.pl. The syntax for cron is minute, hour, day of month, month, day, and then the command.  

QUESTION 17/20:
You have just compiled a new kernel and now you want to upgrade your old kernel using LILO. You compiled the kernel with the command make zImage. You need to copy the kernel to the /boot directory. Where is the kernel currently located at?
  A. /usr/src/linux/
  B. /boot/
  C. /usr/src/linux/kernel/zImage/
  D. /usr/src/linux/arch/i386/boot/
ANSWER:
D: /usr/src/linux/arch/i386/boot/. The kernels are always compiled to this directory and will have a name of zImage or bzImage depending on which make command you specified

QUESTION 18/20:
After specifying all of your options for your kernel, you type in your final command, make zImage. The kernel goes through all of its final stages of compiling, but at the end it complains that the kernel is too large. What steps could you use to fix this problem? (Choose all that apply.)
  A. Edit your kernel configurations and make as many options as you can modules.
  B. Compile the kernel on a bigger system, then copy to your new system.
  C. Use make bzImage instead.
  D. Use make zImage -compress.
ANSWER:
A, C: Creating modules will greatly decrease the size of your kernel. Making a bzImage will allow you to create larger kernels than you normally could with make zImage.  

QUESTION 19/20:
How would you set the runlevel so that your server boots into X Windows when you boot.
  A. Modify the /etc/inetd.conf file and uncomment startx.
  B. Modify the /etc/inittab file and set the initdefault to 5.
  C. Modify the /etc/inittab file and set the initdefault to 6.
  D. Modify the /etc/inittab.conf file and set the initdefault to 5.
ANSWER:
B: Modify the /etc/inittab file and set the initdefault to 5. Runlevel 5 is used by Red Hat to load X Windows automatically.
QUESTION 20/20:


You are running an ISP service and provide space for users' Web pages. You only want them to use 40 MB, but will allow up to 50MB until they can clean up their stuff. How could you use quotas to enforce this policy?
  A. Enable grace periods, set the hard limit to 40MB and the soft limit to 50MB.
  B. Enable grace periods, set the soft limit to 50MB, and the hard limit to 40 MB.
  C. Enable grace periods, set the soft limit to 40MB, and the hard limit to 50MB.
  D. None of the above.
ANSWER:
C: Enable grace periods, set the soft limit to 40MB, and the hard limit to 50MB. This will warn the users that they are over their limit after the grace period, but will make sure they do not exceed the 50MB true maximum barrier.
发表于 2003-1-29 21:52:03 | 显示全部楼层

辛苦了兄弟

我们正需要这个
发表于 2003-1-30 13:08:12 | 显示全部楼层
我比较土,现在才知道这RH的认证是用英文考的。呵呵。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表