tiansgx 回复于:2003-08-15 16:03:37 |
认证考试题: RHCE2B.COM RHCE & Practice Test Thanks to Randy.Flood@rhce2b.com 1. You want to compile a new kernel. You have just run "make dep". What should you do next? Choose the best answer: A. make bzImage B. make dep C. make clean D. make mrproper E. make xconfig -------------------------------------------------------------------------------- 2. 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? Choose the best answer: 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. -------------------------------------------------------------------------------- 3. What does COPS stand for? Choose the best answer: A. Company Oriented Password System B. Computer Oriented Password Security C. Computer Oracle and Password System D. Computer Oracle and Points System E. None of the above -------------------------------------------------------------------------------- 4. How can you create a file of all your ISA plug and play device settings? Choose the best answer: A. pnpdump > isapnp.conf B. pnpdump -isa > isapnp.conf C. isadump > isapnp.conf D. cat /proc/isa E. isaadmin --dump >isapnp.conf -------------------------------------------------------------------------------- 5. What file contains the configuration for BIND? Choose the best answer: A. /etc/bind.conf B. /etc/named.conf C. /etc/dns.conf D. /var/named/bind.conf E. /var/named.conf -------------------------------------------------------------------------------- 6. What does the -H option do for the dhcpcd program? Choose the best answer: A. Sets the hostname of the machine to the name provided by DHCP. B. Kills any previous version of the dhcpcd program that may be running. C. Passes the machine name to DHCP as part of the DHCP request. D. Only tries to get a new ip address if the current one is older than a certain number of hours. E. None of the above -------------------------------------------------------------------------------- 7. What program allows you to acess SMB shares using ftp-like commmands? Choose the best answer: A. mount B. smbftp C. smbclient D. smbmount E. samba -------------------------------------------------------------------------------- 8. You want to add a directory to all users paths. What file should you edit to do this? Choose the best answer: A. /etc/sysconfig/profile B. /etc/sysconfig/profile C. /etc/bashrc D. /etc/profile E. /etc/env -------------------------------------------------------------------------------- 9. How can I see what directories are being shared via NFS on a remote host called fileserver? Choose the best answer: A. ping fileserver B. mount -a -t NFS fileserver C. showmount -e fileserver D. nfstalk --query fileserver E. None of the above -------------------------------------------------------------------------------- 10. How do I immeadiately shut down a Linux system? Choose the best answer: A. Turn off the monitor then turn off the CPU. B. /sbin/stop C. init 6 D. shutdown -h now E. None of the above -------------------------------------------------------------------------------- 11. What directory contains the DNS zone files? Choose the best answer: A. /etc/bind/ B. /etc/named/ C. /etc/bind.d D. /var/named E. /var/bind.d -------------------------------------------------------------------------------- 12. What file contains the list of terminals that root is allowed to log into? Choose the best answer: A. /etc/rooterm.conf B. /etc/terminals C. /etc/secure D. /etc/tty.conf E. /etc/securetty -------------------------------------------------------------------------------- 13. What file would you edit to share out a directory via NFS? Choose the best answer: A. /etc/nfsd.conf B. /etc/nsf C. /etc/fstab D. /etc/exports E. /etc/export.conf -------------------------------------------------------------------------------- 14. How can you find out which ports are being used? Choose the best answer: A. ifconfig -a B. netstat -a C. netstat -rn D. ports E. cat /etc/services -------------------------------------------------------------------------------- 15. Where are source RPMs installed? Choose the best answer: A. /usr/src/linux/rpms/ B. /var/src/linux/rpm/ C. /var/rpm/src/ D. /var/linux/rpm/src/ E. /usr/src/redhat/ -------------------------------------------------------------------------------- 16. You have created a /home/projectfoo directory. How can you change its group ownership to the projectfoo group? Choose the best answer: A. chmod g+rwx projectfoo /home/projectfoo B. chown projectfoo /home/projectfoo C. chgrp projectfoo /home/projectfoo D. newgrp projectfoo /home/projectfoo E. chown projectfoo.users /home/projectfoo -------------------------------------------------------------------------------- 17. What port does the Squid proxy server use by default? Choose the best answer: A. 80 B. 1080 C. 3028 D. 3128 E. 8080 -------------------------------------------------------------------------------- 18. You have just added a new NFS share to the appropriate file. What must you do to activate the share? Choose the best answer: A. reboot B. exportfs -a C. ndc restart D. server nfs start E. mount -A -------------------------------------------------------------------------------- 19. The PCMCIA card configuration file is read by cardmgr (javascript:window.open(this.src);" style="CURSOR: pointer" onload="return imgzoom(this,550)"> at startup time. It defines what resources are available for use by Card Services describes how to load and initialize device drivers and describes specific PCMCIA cards. Where is this file located? Choose the best answer: A. /etc/pcmcia/config.opts B. /etc/sysconfig/pcmcia C. /etc/config.pcmcia D. /etc/pcmcia E. /etc/pcmcia/config -------------------------------------------------------------------------------- 20. What does the following cron entry do? 10 5 * * * /bin/foo Choose the best answer: A. runs /bin/foo every 10 minutes 5 days a week B. runs /bin/foo at 10:05 AM every day C. runs /bin/foo on the 10th of May every year D. runs /bin/foo at 5:10 AM every day E. none of the above -------------------------------------------------------------------------------- 21. What file do I edit to prevent specific users from aclearcase/" target="_blank" >ccessing an ftp server? Choose the best answer: A. /etc/hosts.allow B. /etc/hosts.deny C. /etc/ftpacess D. /etc/ftpusers E. /etc/ftpd.conf -------------------------------------------------------------------------------- 22. You install Linux and reboot your machine and you see only L instead of the expected LILO. What is wrong? Choose the best answer: A. Lilo did not load at all. B. The first stage boot loader loaded but not the second stage. C. The descriptor table is corrupt. D. The second stage boot loader loaded at an incorrect address E. Nothing is wrong. -------------------------------------------------------------------------------- 23. What directory contains the kernel? Choose the best answer: A. / B. /kernel C. /etc D. /boot E. /var/log -------------------------------------------------------------------------------- 24. How do you enable quotas on a partition in /etc/fstab? Choose the best answer: 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. -------------------------------------------------------------------------------- 25. If you want to allow X-Windows programs from hostB to run on the display on hostA what would you need to do? Choose the best answer: A. run xhost +hostB on hostA. B. run xhost +hostA on hostB. C. run xhost + on hostA. D. run xhost + on hostB. E. just set the DISPLAY environment variable and it will work. -------------------------------------------------------------------------------- 26. What command will turn off the ftpd service in all runlevels? Choose the best answer: A. chkconfig ftpd off B. rm /etc/rc.d/init.d/*ftpd* C. chkconfig --levels 12345 ftpd off D. service ftpd stop E. service ftpd stop -persistant -------------------------------------------------------------------------------- 27. You want to compile a new kernel. You have just run "make xconfig". What should you do next? Choose the best answer: A. make bzImage B. make dep C. make clean D. make mrproper E. make xconfig -------------------------------------------------------------------------------- 28. What command do you use to edit quotas? Choose the best answer: A. quotaconfig B. editquota C. quotaconfig D. edquota E. quotaeditor -------------------------------------------------------------------------------- 29. Your IP address is 10.0.0.2 and your subnet mask is 255.255.255.0. You have one ethernet card. You want to set your default gateway to be 10.0.0.1. Which of the following is the correct syntax to accomplish this? Choose the best answer: A. route add default 10.0.0.1 eth0 B. route add default gw 10.0.0.1 dev eth0 C. route add default gw 10.0.0.2 eth0 255.255.255.0 D. route add default gw 10.0.0.2 /dev/eth0 255.255.255.0 E. route add default gw 10.0.0.2 255.255.255.0 -------------------------------------------------------------------------------- 30. You want to compile a new kernel. You have already compiled the kernel and modules. How do you install the modules? Choose the best answer: A. make modules_install B. make install C. make modules D. make install_modules E. make bzImage -------------------------------------------------------------------------------- 31. What file do you edit to set the default runlevel? Choose the best answer: A. /etc/grub.conf B. /etc/lilo.conf C. either A or B D. /etc/inittab E. /etc/runlevel -------------------------------------------------------------------------------- 32. Where are kernel modules stored assuming you are using kernel version 2.4.16-9? Choose the best answer: A. /lib/redhat/modules/2.4.16-9 B. /lib C. /lib/modules/2.4.16-9 D. /lib/modules E. /usr/lib/modules/ -------------------------------------------------------------------------------- 33. How can you turn off interface eth1? Choose the best answer: A. service network stop B. service netork stop eth1 C. ifstop eth1 D. ifdown eth1 E. ps -aux |grep eth1| kill `awk -f {$1}` -------------------------------------------------------------------------------- 34. How can you see the kernel routing table? Choose the best answer: A. netstat -Route B. netstat -rn C. netstat -an D. route show default gw E. netstat -------------------------------------------------------------------------------- 35. What program can be used to test the smb.conf file for errors? Choose the best answer: A. mount B. test C. samba --checkparm D. testparm E. smbfs -------------------------------------------------------------------------------- 36. Which files are used to configure TCP Wrappers? Choose the best answer: 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 -------------------------------------------------------------------------------- 37. Which installation class will automatically delete all of your DOS partitions? Choose the best answer: A. Custom B. Workstation C. Laptop D. Server E. All of the above -------------------------------------------------------------------------------- 38. What command allows you to switch from using Gnome to using KDE? Choose the best answer: A. Xconfigurator B. Xsetup C. Xwindowconfig D. switchdesk E. videocfg -------------------------------------------------------------------------------- 39. You have just added a new NFS share to the appropriate file. What must you do to activate the share? Choose the best answer: A. reboot B. exportfs -a C. ndc restart D. server nfs start E. mount -A -------------------------------------------------------------------------------- 40. What does the -N option do for the dhcpcd program? Choose the best answer: A. Sets the hostname of the machine to the name provided by DHCP. B. If the dhcpcd server is already running then it sends it an ALRM signal to get it to renew its lease. C. Passes the machine name to DHCP as part of the DHCP request. D. Only tries to get a new ip address if the current one is older than a certain number of hours. E. None of the above -------------------------------------------------------------------------------- 41. Which options to chmod allow read access to all but only allow write and execute access to the owner? Choose the best answer: A. chmod 777 filename B. chmod 700 filename C. chmod 744 filename D. chmod 447 filename E. chmod 775 filename -------------------------------------------------------------------------------- 42. You have a Linux machine that does not have X-Windows configured. What command can you use to find out what kind of graphics card it has? Choose the best answer: A. Xfind B. SuperProbe C. Xsetup D. cat /proc/video E. videocfg -------------------------------------------------------------------------------- 43. What command do you use to edit the default grace period for quotas? Choose the best answer: A. quotaconfig -g B. editquota -g C. quotaconfig -t D. edquota -t E. quotaeditor --grace -------------------------------------------------------------------------------- 44. Which option can not be specified to a Client using the DHCP protocol? Choose the best answer: A. default gateway B. primary WINS server C. subnet mask D. web proxy server E. IP address -------------------------------------------------------------------------------- 45. You have installed a DHCP server on your Linux machine and edited the configuration file. What else must you do before it will give out ip addresses? Choose the best answer: A. reboot B. Put fixed-addresses in the configuration for each client. C. service dhcp begin D. touch /var/lib/dhcp/dhcpd.leases E. All of the above -------------------------------------------------------------------------------- 46. What is the correct syntax to mount an MS DOS formatted floppy disk (do not assume that there is an entry in /etc/fstab)? Choose the best answer: A. mount /dev/floppy /mnt/fd0 B. mount -t iso9660 /dev/fd0 /mnt/floppy C. mount -t vfat /dev/fd0 /mnt/floppy D. mount -t msdos /dev/floppy /mnt/floppy E. mdir -------------------------------------------------------------------------------- 47. What is the correct syntax to mount an MS DOS formatted floppy disk (do not assume that there is an entry in /etc/fstab)? Choose the best answer: A. mount /dev/floppy /mnt/fd0 B. mount -t iso9660 /dev/fd0 /mnt/floppy C. mount -t vfat /dev/fd0 /mnt/floppy D. mount -t msdos /dev/floppy /mnt/floppy E. mdir -------------------------------------------------------------------------------- 48. You have created a /home/projectx directory with the owner of projectx and a group of projectx. How can you set its permissions so that all files created in this directory are owned by the projectx group? Choose the best answer: A. chown projectx.projextx /home/projectx B. chgrp projectx /home/projectx C. chmod 755 /home/projectx D. chmod g-s /home/projectx E. chmod g+s /home/projectx -------------------------------------------------------------------------------- 49. What command will map all of the dependencies between modules into a file? Choose the best answer: A. modmap B. depmod -a C. depmod --rebuild D. modmap --rebuild E. modprobe --rebuild -------------------------------------------------------------------------------- 50. What file contains the configuration for the Network Time Protocol server? Choose the best answer: A. /etc/ntp.conf B. /etc/xntp.conf C. /etc/NTP D. /etc/time.conf E. /etc/timeserver.conf -------------------------------------------------------------------------------- 51. How can a user set up their own crontab entry? Choose the best answer: A. vi ~/.crontab B. cp /etc/crontab . C. crontab -v D. crontab -e E. cron -edit -------------------------------------------------------------------------------- 52. Sendmail is an example of a(n) Choose the best answer: A. MTA B. MUA C. MDA D. MLA E. All of the above -------------------------------------------------------------------------------- 53. How do you install an RPM? Choose the best answer: A. rpm -evh packagename.rpm B. rpm -ivh packagename.rpm C. rpm -q packagename.rpm D. rpm -qa *.rpm E. rpm -ql *.rpm -------------------------------------------------------------------------------- 54. What command will create the quota.user and quota.group files for me? Choose the best answer: A. quotacheck -avug B. quotacheck -cugf C. quotacheck -rugf D. repquota -u E. none of the above -------------------------------------------------------------------------------- 55. You have Linux installed on a machine and you use LILO as your boot loader. How do you boot into single user mode? Choose all correct answers: A. Wait for the machine to boot up then log in as root. Use the init 2 command. B. At the LILO prompt use the linux single command. C. At the LILO prompt use the linux 1 command. D. At the LILO prompt use the linux command. E. Linux only supports multi-user mode. -------------------------------------------------------------------------------- 56. What command can you enter to find out which rpm contains the /etc/foo file? Choose the best answer: A. rpm -qa |grep foo B. rpm -ql /etc/foo C. rpm -qlf /etc/foo D. rpm -q -f /etc/foo E. man foo |
tiansgx 回复于:2003-08-15 16:05:10 |
答案及出处: http://www.rhce2b.com/cgi-bin/test/test.pl |
tiansgx 回复于:2003-08-15 16:07:59 |
大家答完题可以讨论一下! |
linuxhack 回复于:2003-08-24 04:07:13 |
好贴,顶一下。。。 |
robert2000 回复于:2003-08-24 09:03:31 |
真不錯,請問從考的人數來看通過率大不大呀? |
dsword 回复于:2003-08-24 13:08:47 |
好贴! |
Lost in spy 回复于:2003-10-21 14:36:33 |
it's great! |