bax 发表于 2004-6-8 00:34:14

通过RHCE的给看看,测试到这个程度,离通过考试有多远?

刚看一个网上有测试,试验了一下,下面是作题的结果(分数统计在最后)。
从0:11开始作的,做到0:25做完。另外,我作Linux的服务器维护和
C/PHP的开发有3年了,从开始看Linux有四年了,有谁考过了RHCE的,给指点一下,该怎么通过这个考试,现在的条件是没有纸的教材和真真的
完整的模拟题,还望指教一下该怎么复习一下(乘现在还是学生能静心学习),增取一次过了RHCE(穷人,没钱折腾这个)都谢了。
foo: on on

1. If you want to allow X-Windows programs from hostB to run on the display on hostA what would you need to do?
*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.
You answered this question correctly
Explanation: You want programs from hostB to display on hostA. So you must tell hostA to allow Xclients from hostB. Hence A is correct. The xhost + command is too broad and allows anyone to connect to your X-server.

2. The PCMCIA card configuration file is read by cardmgr (8) 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?
*A. /etc/pcmcia/config.opts
B. /etc/sysconfig/pcmcia
C. /etc/config.pcmcia
D. /etc/pcmcia
E. /etc/pcmcia/config
You answered this question correctly
Explanation: The card configuration file that contains specific PCMCIA files is /etc/pcmcia/config.opts.

3. What directory contains the kernel?
A. /
B. /kernel
C. /etc
*D. /boot
E. /var/log
You answered this question correctly
Explanation: The Kernel is in /boot.

4. You have Linux installed on a machine and you use LILO as your boot loader. How do you boot into single user mode?
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.
You answered this question correctly
Explanation: Either linux single or linux 1 will work at the LILO prompt. A will not work because single user mode is runlevel 1. D will only work if the default runlevel in /etc/inittab is set to 1 (which it is not normally.)

5. What directory contains the DNS zone files?
A. /etc/bind/
B. /etc/named/
C. /etc/bind.d
*D. /var/named
E. /var/bind.d
You answered this question correctly
Explanation: The zone files are stored in /var/named by default. The location of this directory is specified in /etc/named.conf.

6. How can a user set up their own crontab entry?
A. vi ~/.crontab
B. cp /etc/crontab .
C. crontab -v
*D. crontab -e
E. cron -edit
You answered this question correctly
Explanation: The crontab -e command is used to edit your own crontab.

7. What command will map all of the dependencies between modules into a file?
A. modmap
*B. depmod -a
C. depmod --rebuild
D. modmap --rebuild
E. modprobe --rebuild
You answered this question correctly
Explanation: The depmod -a command finds all the dependcies betwen modules and puts the information in the modules.dep file.

8. What port does the Squid proxy server use by default?
A. 80
B. 1080
C. 3028
*D. 3128
E. 8080
You answered this question correctly
Explanation: D is right!

9. Which option can not be specified to a Client using the DHCP protocol?
A. default gateway
B. primary WINS server
C. subnet mask
*D. web proxy server
E. IP address
You answered this question correctly
Explanation: You can specify all of the above except the address of the web proxy server via DHCP.

10. How do you install an RPM?
A. rpm -evh packagename.rpm
*B. rpm -ivh packagename.rpm
C. rpm -q packagename.rpm
D. rpm -qa *.rpm
E. rpm -ql *.rpm
You answered this question correctly
Explanation: A is wrong because the -e option is for uninstalling. B is right. C D and E are wrong because the -q option is for querrying.

11. What file would you edit to share out a directory via NFS?
A. /etc/nfsd.conf
B. /etc/nsf
C. /etc/fstab
*D. /etc/exports
E. /etc/export.conf
You answered this question correctly
Explanation: To share a directory via NFS you must edit the /etc/exports file and then run exportfs -a.

12. What program allows you to acess SMB shares using ftp-like commmands?
A. mount
B. smbftp
*C. smbclient
D. smbmount
E. samba
You answered this question correctly
Explanation: The smbclient program allows you to acess SMB shares using commands similar to FTP.

13. You install Linux and reboot your machine and you see only L instead of the expected LILO. What is wrong?
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.
You answered this question correctly
Explanation: When Lilo just displays an L then the first stage boot loader loaded but not the second stage. If the second stage loaded then LILO would print an LI. When the descriptor table is corrupt LILO prints LIL-. When the second stage boot loader is loaded at an incorrect address LILO prints LIL?.

14. 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 correctly
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


15. What is the correct syntax to mount an MS DOS formatted floppy disk (do not assume that there is an entry in /etc/fstab)?
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
You answered this question correctly
Explanation: A will only work if there is an entry in /etc/fstab. B is wrong because iso9660 is for CDROM's. C is correct. D is wrong becuase the device should be /dev/fd0 rather than /dev/floppy.

16. How can I see what directories are being shared via NFS on a remote host called fileserver?
A. ping fileserver
*B. mount -a -t NFS fileserver
C. showmount -e fileserver
D. nfstalk --query fileserver
E. None of the above
You answered this question incorrectly
Explanation: Only C is right!

17. Sendmail is an example of a(n):?
*A. MTA
B. MUA
C. MDA
D. MLA
E. All of the above
You answered this question correctly
Explanation: Only A is correct. Sendmail is an MTA

18. How do I immeadiately shut down a Linux system?
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
You answered this question correctly
Explanation: A is wrong because you should always gracefully shut down a machine. B is wrong because there is no such command. C is wrong becauuse it will reboot the machine. Hence D is correct.

19. 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 correctly
Explanation: TCP Wrappers are configured in the /etc/hosts.allow and /etc/hosts.deny files.

20. You have created a /home/projectfoo directory. How can you change its group ownership to the projectfoo group?
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
You answered this question correctly
Explanation: The chgrp command sets the group ownership of a file or directory.

21. What file do I edit to prevent specific users from accessing an ftp server?
A. /etc/hosts.allow
B. /etc/hosts.deny
C. /etc/ftpacess
*D. /etc/ftpusers
E. /etc/ftpd.conf
You answered this question correctly
Explanation: The /etc/ftpusers file lists users not allowed to FTP.

22. What program can be used to test the smb.conf file for errors?
A. mount
B. test
C. samba --checkparm
*D. testparm
E. smbfs
You answered this question correctly
Explanation: the testparm program parses the smb.conf file and reports any errors. If you make a typo this program is likely to find it.

23. What command will turn off the ftpd service in all runlevels?
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
You answered this question correctly
Explanation: The chkconfig command is used to do this. You should also know how to use ntsysv.

24. What command do you use to edit the default grace period for quotas?
A. quotaconfig -g
B. editquota -g
C. quotaconfig -t
*D. edquota -t
E. quotaeditor --grace
You answered this question correctly
Explanation: You use the edquota command to edit quotas. For example you can say edquota -u uname to edit a specific user's quota. Or you can type edquota -g to set a quota for a group. You can say edquota -t to set up grace periods.

25. What does the -H option do for the dhcpcd program?
*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
You answered this question correctly
Explanation: The -H option forces dhcpcd to set the hostname of the host to the hostname option supplied by the DHCP server.

26. What file contains the configuration for the Network Time Protocol server?
*A. /etc/ntp.conf
B. /etc/xntp.conf
C. /etc/NTP
D. /etc/time.conf
E. /etc/timeserver.conf
You answered this question correctly
Explanation: The XNTP server is configured in /etc/ntp.conf.

27. 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.

28. 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?
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
You answered this question correctly
Explanation: A and B don't set the proper subnet mask. C is correct. D's syntax is wrong. E's syntax is wrong.

29. Where are source RPMs installed?
A. /usr/src/linux/rpms/
B. /var/src/linux/rpm/
C. /var/rpm/src/
D. /var/linux/rpm/src/
*E. /usr/src/redhat/
You answered this question correctly
Explanation: Source RPMs are installed in /usr/src/redhat. There are 5 subdirectories under there. SOURCES contains the original source code. SPECS contains the specification files that control the RPM build process. BUILD is where source code is uncompressed and built. SRPMS contains the source RPM that is created when you build one.

30. What command do you use to edit quotas?
A. quotaconfig
B. editquota
C. quotaconfig
*D. edquota
E. quotaeditor
You answered this question correctly
Explanation: You use the edquota command to edit quotas. For example you can say edquota -u uname to edit a specific user's quota. Or you can type edquota -g to set a quota for a group. You can say edquota -t to set up grace periods.

31. Which options to chmod allow read access to all but only allow write and execute access to the owner?
A. chmod 777 filename
B. chmod 700 filename
*C. chmod 744 filename
D. chmod 447 filename
E. chmod 775 filename
You answered this question correctly
Explanation: A is wrong because it allows read write and execute to everyone. B is wrong because it does not allow read access to everyone. C is correct. D is wrong because it allows write acess to everyone. E is wrong because it allows write access to the group.

32. How can you see the kernel routing table?
A. netstat -Route
*B. netstat -rn
C. netstat -an
D. route show default gw
E. netstat
You answered this question correctly
Explanation: The netstat -rn command shows the kernel routing table.

33. What command will create the quota.user and quota.group files for me?
*A. quotacheck -avug
B. quotacheck -cugf
C. quotacheck -rugf
D. repquota -u
E. none of the above
You answered this question correctly
Explanation: A is right. You can also do it like this:
touch /quota.user
touch /quota.group
chmod 600 /quota.*


34. 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?
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
You answered this question correctly
Explanation: The

35. What does the -N option do for the dhcpcd program?
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
You answered this question correctly
Explanation: The -N option will an ALRM signal to dhcpcd,if it is already running, to cause it to attempt to renew it's lease.

36. Which installation class will automatically delete all of your DOS partitions?
A. Custom
B. Workstation
C. Laptop
*D. Server
E. All of the above
You answered this question correctly
Explanation: The Server installation class will automatically delete all DOS partitions. The workstation class will use availiable free space. The laptop class is very similar to the workstation class (but for laptops.)

37. How can you find out which ports are being used?
A. ifconfig -a
*B. netstat -a
C. netstat -rn
D. ports
E. cat /etc/services
You answered this question correctly
Explanation: The netstat -a command shows you which ports are in use. A is wrong because the ifconfig -a command tells you about your NICs. B is correct. C is wrong because it shows you the routing table. D doesn't do anyting. E just shows you the etc/ports file.

38. What file contains the configuration for BIND?
A. /etc/bind.conf
*B. /etc/named.conf
C. /etc/dns.conf
D. /var/named/bind.conf
E. /var/named.conf
You answered this question correctly
Explanation: BIND (the Berkely Internet Name Daemon) which is a DNS server is configured in /etc/named.conf.

39. 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 correctly
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.

40. You want to compile a new kernel. You have already compiled the kernel and modules. How do you install the modules?
*A. make modules_install
B. make install
C. make modules
D. make install_modules
E. make bzImage
You answered this question correctly
Explanation: The first thing you should do in the /usr/src/linux-2.4 directory is
make mrproper
Then, 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


41. 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 correctly
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


42. How can you create a file of all your ISA plug and play device settings?
*A. pnpdump > isapnp.conf
B. pnpdump -isa > isapnp.conf
C. isadump > isapnp.conf
D. cat /proc/isa
E. isaadmin --dump >isapnp.conf
You answered this question correctly
Explanation: Only A is right

43. 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?
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
You answered this question correctly
Explanation: You must touch the /var/lib/dhcp/dhcpd.leases file in order to get DHCP to begin giving out ip addresses.

44. What file contains the list of terminals that root is allowed to log into?
A. /etc/rooterm.conf
B. /etc/terminals
C. /etc/secure
D. /etc/tty.conf
*E. /etc/securetty
You answered this question correctly
Explanation: The /etc/securetty file contains a list of all terminals that root is allowed to log into.

45. What is the correct syntax to mount an MS DOS formatted floppy disk (do not assume that there is an entry in /etc/fstab)?
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
You answered this question correctly
Explanation: A will only work if there is an entry in /etc/fstab. B is wrong because iso9660 is for CDROM's. C is correct. D is wrong becuase the device should be /dev/fd0 rather than /dev/floppy.

46. You have just added a new NFS share to the appropriate file. What must you do to activate the share?
A. reboot
*B. exportfs -a
C. ndc restart
D. server nfs start
E. mount -A
You answered this question correctly
Explanation: To share a directory via NFS you must edit the /etc/exports file and then run exportfs -a.

47. What does COPS stand for?
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
You answered this question correctly
Explanation: COPS (Computer Oracle and Password System) can check your system for things that are insecure.

48. What command can you enter to find out which rpm contains the /etc/foo file?
A. rpm -qa |grep foo
B. rpm -ql /etc/foo
C. rpm -qlf /etc/foo
*D. rpm -q -f /etc/foo
E. man foo
You answered this question correctly
Explanation: You can find out which rpm a file belongs to by using the rpm -q -f command. You must have the redhatrpmdb rpm installed though.

49. What file do you edit to set the default runlevel?
A. /etc/grub.conf
B. /etc/lilo.conf
C. either A or B
*D. /etc/inittab
E. /etc/runlevel
You answered this question correctly
Explanation: /etc/inittab is the standard place to do this and is the best answer.

50. 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?
A. Xfind
*B. SuperProbe
C. Xsetup
D. cat /proc/video
E. videocfg
You answered this question correctly
Explanation: The SuperProbe program is used to find information about your graphics card.

51. Where are kernel modules stored assuming you are using kernel version 2.4.16-9?
A. /lib/redhat/modules/2.4.16-9
B. /lib
*C. /lib/modules/2.4.16-9
D. /lib/modules
E. /usr/lib/modules/
You answered this question correctly
Explanation: kernel modules are stored in /lib/modules/.

52. You have just added a new NFS share to the appropriate file. What must you do to activate the share?
A. reboot
*B. exportfs -a
C. ndc restart
D. server nfs start
E. mount -A
You answered this question correctly
Explanation: To share a directory via NFS you must edit the /etc/exports file and then run exportfs -a.

53. What does the following cron entry do?
10 5 * * * /bin/foo

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
You answered this question correctly
Explanation: The fields are: minute hour day of month month day of week command

54. 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 correctly
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.

55. How can you turn off interface eth1?
A. service network stop
B. service netork stop eth1
C. ifstop eth1
*D. ifdown eth1
E. ps -aux |grep eth1| kill `awk -f {$1}`
You answered this question correctly
Explanation: The ifdown eth1 command will turn off the eth1 interface. the service network stop command will stop all networking which is not what you want. The ifstop command does not exist. The last command is just nonsense.

56. What command allows you to switch from using Gnome to using KDE?
A. Xconfigurator
B. Xsetup
C. Xwindowconfig
*D. switchdesk
E. videocfg
You answered this question correctly
Explanation: The switchdesk program allows you to switch desktop enviornments and window managers.

numcorrect= 54
numincorrect =2
You answered 54 correctly out of 56 for a total of 96.4285714285714 percent

Home Page

Rickyaaron 发表于 2004-6-10 01:51:28

现在的RHCE考试已经不考选择题了,多做些实践的题目.

bax 发表于 2004-6-10 17:49:48

谢谢啦,实践的题目到目前为止,我只看到了几个rpm的包,好像是例程,不知道那里有大量的这种设置故障的问题,自己搞的故障,自己知道问题在
那里,还有经常给别人看机子问题,基本上都是装系统把grub给搞丢了,
要不,就是不正常关机造成需要fsck一下。不知道那里有故障设置这方面的
东西,谢谢啦

樱家冢 发表于 2004-6-10 20:54:07

RHEL 3的考试没有选择题。
第一部分
启动排错

第二部分
本地管理

第三部分
网络服务管理

Rickyaaron 发表于 2004-6-11 08:35:04

如果你有参加培训的话,就作教材后面的LAB,排错部分要知道哪里找错误就可以了.

bax 发表于 2004-6-11 14:03:13

没有培训呀,谁有教材卖给我

jackzheng2002 发表于 2004-6-11 22:59:23

参考以前的题目多练习练习

bax 发表于 2004-6-17 18:37:36

就是不知道那里有的东西作?
谢谢啦
页: [1]
查看完整版本: 通过RHCE的给看看,测试到这个程度,离通过考试有多远?