50道RHCE试题.doc_第1页
50道RHCE试题.doc_第2页
50道RHCE试题.doc_第3页
50道RHCE试题.doc_第4页
50道RHCE试题.doc_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1. What file do I edit to prevent specific users from accessing an ftp server? Choose the best answer:A. /etc/hosts.allowB. /etc/hosts.denyC. /etc/ftpacessD. /etc/ftpusersE. /etc/ftpd.conf2. 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. rebootB. exportfs -aC. ndc restartD. server nfs startE. mount -A3. 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 above4. What command will map all of the dependencies between modules into a file?Choose the best answer:A. modmapB. depmod -aC. depmod -rebuildD. modmap -rebuildE. modprobe -rebuild5. What file contains the list of terminals that root is allowed to log into?Choose the best answer:A. /etc/rooterm.confB. /etc/terminalsC. /etc/secureD. /etc/tty.confE. /etc/securetty6. How do you install an RPM?Choose the best answer:A. rpm -evh packagename.rpmB. rpm -ivh packagename.rpmC. rpm -q packagename.rpmD. rpm -qa *.rpmE. rpm -ql *.rpm7. What command will turn off the ftpd service in all runlevels?Choose the best answer:A. chkconfig ftpd offB. rm /etc/rc.d/init.d/*ftpd*C. chkconfig -levels 12345 ftpd offD. service ftpd stopE. service ftpd stop -persistant8. What file would you edit to share out a directory via NFS?Choose the best answer:A. /etc/nfsd.confB. /etc/nsfC. /etc/fstabD. /etc/exportsE. /etc/export.conf9. How can you see the kernel routing table?Choose the best answer:A. netstat -RouteB. netstat -rnC. netstat -anD. route show default gwE. netstat10. Sendmail is an example of a(n):?Choose the best answer:A. MTAB. MUAC. MDAD. MLAE. All of the above11. What command can you enter to find out which rpm contains the /etc/foo file? Choose the best answer:A. rpm -qa |grep fooB. rpm -ql /etc/fooC. rpm -qlf /etc/fooD. rpm -q -f /etc/fooE. man foo12. How can I see what directories are being shared via NFS on a remote host called fileserver?Choose the best answer:A. ping fileserverB. mount -a -t NFS fileserverC. showmount -e fileserverD. nfstalk -query fileserverE. None of the above13. What command do you use to edit the default grace period for quotas?Choose the best answer:A. quotaconfig -gB. editquota -gC. quotaconfig -tD. edquota -tE. quotaeditor -grace14. You want to compile a new kernel. You have just run make dep. What should you do next?Choose the best answer:A. make bzImageB. make depC. make cleanD. make mrproperE. make xconfig15. What command will create the quota.user and quota.group files for me?Choose the best answer:A. quotacheck -avugB. quotacheck -cugfC. quotacheck -rugfD. repquota -uE. none of the above16. 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/profileB. /etc/sysconfig/profileC. /etc/bashrcD. /etc/profileE. /etc/env17. How can you turn off interface eth1?Choose the best answer:A. service network stopB. service netork stop eth1C. ifstop eth1D. ifdown eth1E. ps -aux |grep eth1| kill awk -f $118. 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.19. Your IP address is and your subnet mask is . You have one ethernet card. You want to set your default gateway to be . Which of the following is the correct syntax to accomplish this?Choose the best answer:A. route add default eth0B. route add default gw dev eth0C. route add default gw eth0 D. route add default gw /dev/eth0 E. route add default gw 20. What command do you use to edit quotas?Choose the best answer:A. quotaconfigB. editquotaC. quotaconfigD. edquotaE. quotaeditor21. 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.22. What port does the Squid proxy server use by default?Choose the best answer:A. 80B. 1080C. 3028D. 3128E. 808023. What program can be used to test the smb.conf file for errors?Choose the best answer:A. mountB. testC. samba -checkparmD. testparmE. smbfs24. What file contains the configuration for the Network Time Protocol server?Choose the best answer:A. /etc/ntp.confB. /etc/xntp.confC. /etc/NTPD. /etc/time.confE. /etc/timeserver.conf25. 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 jextx /home/projectxB. chgrp projectx /home/projectxC. chmod 755 /home/projectxD. chmod g-s /home/projectxE. chmod g+s /home/projectx26. What program allows you to acess SMB shares using ftp-like commmands?Choose the best answer:A. mountB. smbftpC. smbclientD. smbmountE. samba27. 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 above28. 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-9B. /libC. /lib/modules/2.4.16-9D. /lib/modulesE. /usr/lib/modules/29. What does the following cron entry do?10 5 * * * /bin/fooChoose the best answer:A. runs /bin/foo every 10 minutes 5 days a weekB. runs /bin/foo at 10:05 AM every dayC. runs /bin/foo on the 10th of May every yearD. runs /bin/foo at 5:10 AM every dayE. none of the above30. What directory contains the DNS zone files?Choose the best answer:A. /etc/bind/B. /etc/named/C. /etc/bind.dD. /var/namedE. /var/bind.d31. You want to compile a new kernel. You have just run make xconfig. What should you do next? Choose the best answer:A. make bzImageB. make depC. make cleanD. make mrproperE. make xconfig32. What file contains the configuration for BIND?Choose the best answer:A. /etc/bind.confB. /etc/named.confC. /etc/dns.confD. /var/named/bind.confE. /var/named.conf33. How can you find out which ports are being used?Choose the best answer:A. ifconfig -aB. netstat -aC. netstat -rnD. portsE. cat /etc/services34. 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 addressE. Nothing is wrong.35. 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/fd0B. mount -t iso9660 /dev/fd0 /mnt/floppyC. mount -t vfat /dev/fd0 /mnt/floppyD. mount -t msdos /dev/floppy /mnt/floppyE. mdir36. Which option can not be specified to a Client using the DHCP protocol?Choose the best answer:A. default gatewayB. primary WINS serverC. subnet maskD. web proxy serverE. IP address37. 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 filenameB. chmod 700 filenameC. chmod 744 filenameD. chmod 447 filenameE. chmod 775 filename38. 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 55 dev eth0B. route add -net 55 dev eth0C. service dhcp restartD. touch /var/state/leasesE. Windows 95 is not compatible with a Linux DHCP server.39. What command allows you to switch from using Gnome to using KDE?Choose the best answer:A. XconfiguratorB. XsetupC. XwindowconfigD. switchdeskE. videocfg40. What file do you edit to set the default runlevel?Choose the best answer:A. /etc/grub.confB. /etc/lilo.confC. either A or BD. /etc/inittabE. /etc/runlevel41. 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/stopC. init 6D. shutdown -h now E. None of the above42. 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/projectfooB. chown projectfoo /home/projectfooC. chgrp projectfoo /home/projectfooD. newgrp projectfoo /home/projectfooE. chown projectfoo.users /home/projectfoo43. 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/fd0B. mount -t iso9660 /dev/fd0 /mnt/floppyC. mount -t vfat /dev/fd0 /mnt/floppyD. mount -t msdos /dev/floppy /mnt/floppyE. mdir44. How can you create a file of all your ISA plug and play device settings?Choose the best answer:A. pnpdump %26gt; isapnp.confB. pnpdump -isa %26gt; isapnp.confC. isadump %26gt; isapnp.confD. cat /proc/isaE. isaadmin -dump %26gt;isapnp.conf45. 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_installB. make installC. make modulesD. make install_module

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论