会计考友 发表于 2012-8-4 12:19:50

红帽认证RHCE试题及答案3

11. How do you enable quotas on a partition in /etc/fstab?
A. Add the enforcequotas option.
B. You don’t. Quotas are turned on automatically when you install the quota rpm.
C. Add the quota option.
D. Add the usrquota and grpquota options.
E. You put a 1 in the last column.
You answered this question incorrectly
Explanation: To enable quotas on a partition you put the userquota and groupquota option in the options section for the partition in /etc/fstab.

12.You want to compile a new kernel. You have just run
A. make bzImage
B. make dep
C. make clean
D. make mrproper
E. make xconfig
You answered this question incorrectly
Explanation: The first thing you should do in the /usr/src/linux-2.4 directory is
make mrproper
Thencomma you should do the following: make config | make menuconfig | make xconfig
make dep
make clean
make bzImage
make modules (if modular kernel)
make modules_install (if modular kernel)
cp System.map /boot/System.map-2.4.17
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.17
cp .config /boot/config-2.4.17
mkinitrd /boot/initrd- # Depending on kernel configuration
Update LILO or GRUB
Reboot into new kernel


13. You are configuring a Linux DHCP server. You have it setup and working (as Linux clients are getting ip addresses from the DHCP server fine) but some Windows 95 clients are not getting ip addresses properly from your DHCP server. What do you need to do?
A. route add -host 255.255.255.255 dev eth0
B. route add -net 255.255.255.255 dev eth0
C. service dhcp restart
D. touch /var/state/leases
E. Windows 95 is not compatible with a Linux DHCP server.
You answered this question incorrectly
Explanation: Windows 95 insists that the DHCPOFFER messages be sent to 255.255.255.255. Linux will send them to the broadcast address instead. Adding a host entry for the host 255.255.255.255 will trick Linux into working with the Windows 95 clients.

14. You want to add a directory to all users paths. What file should you edit to do this?
A. /etc/sysconfig/profile B. /etc/sysconfig/profile
C. /etc/bashrc
D. /etc/profile
E. /etc/env
You answered this question incorrectly
Explanation: The /etc/profile script is used for system-wide enviornment variables and startup files. You could also create a new file in /etc/profile.d/ that ends in .sh and set the enviornment variable in there. Keep in mind that not all users will necessarily use bash.

15. Which files are used to configure TCP Wrappers?
A. /etc/tcpwrapper.conf and /etc/hosts.conf
B. /etc/hosts.allow and /etc/hosts.deny
C. /etc/tcpwrapper.conf and /etc/xinetd.conf
D. /etc/access.conf and /etc/xinetd.conf
E. /etc/tcpwrapper and /etc/access.conf
You answered this question incorrectly
Explanation: TCP Wrappers are configured in the /etc/hosts.allow and /etc/hosts.deny files.
页: [1]
查看完整版本: 红帽认证RHCE试题及答案3