<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[五十九道RHCE参考笔势试题 ]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Sat, 13 Nov 2010 04:49:45 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	1. What file do I edit to prevent specific users from accessing an ftp server? <br/>Choose the best answer: <br/>A. /etc/hosts.allow <br/>B. /etc/hosts.deny <br/>C. /etc/ftpacess <br/>D. /etc/ftpusers <br/>E. /etc/ftpd.conf <br/><br/>2. You have just added a new NFS share to the appropriate file. What must you do to activate the share? <br/>Choose the best answer: <br/>A. reboot <br/>B. exportfs -a <br/>C. ndc restart <br/>D. server nfs start <br/>E. mount -A <br/><br/>3. What does the -H option do for the dhcpcd program? <br/>Choose the best answer: <br/>A. Sets the hostname of the machine to the name provided by DHCP. <br/>B. Kills any previous version of the dhcpcd program that may be running. <br/>C. Passes the machine name to DHCP as part of the DHCP request. <br/>D. Only tries to get a new ip address if the current one is older than a certain number of hours. <br/>E. None of the above <br/><br/>4. What command will map all of the dependencies between modules into a file? <br/>Choose the best answer: <br/>A. modmap <br/>B. depmod -a <br/>C. depmod --rebuild <br/>D. modmap --rebuild <br/>E. modprobe --rebuild <br/><br/>5. What file contains the list of terminals that root is allowed to log into? <br/>Choose the best answer: <br/>A. /etc/rooterm.conf <br/>B. /etc/terminals <br/>C. /etc/secure <br/>D. /etc/tty.conf <br/>E. /etc/securetty <br/><br/>6. How do you install an RPM? <br/>Choose the best answer: <br/>A. rpm -evh packagename.rpm <br/>B. rpm -ivh packagename.rpm <br/>C. rpm -q packagename.rpm <br/>D. rpm -qa *.rpm <br/>E. rpm -ql *.rpm <br/><br/>7. What command will turn off the ftpd service in all runlevels? <br/>Choose the best answer: <br/>A. chkconfig ftpd off <br/>B. rm /etc/rc.d/init.d/*ftpd* <br/>C. chkconfig --levels 12345 ftpd off <br/>D. service ftpd stop <br/>E. service ftpd stop -persistant <br/><br/>8. What file would you edit to share out a directory via NFS? <br/>Choose the best answer: <br/>A. /etc/nfsd.conf <br/>B. /etc/nsf <br/>C. /etc/fstab <br/>D. /etc/exports <br/>E. /etc/export.conf <br/><br/>9. How can you see the kernel routing table? <br/>Choose the best answer: <br/>A. netstat -Route <br/>B. netstat -rn <br/>C. netstat -an <br/>D. route show default gw <br/>E. netstat <br/><br/>10. Sendmail is an example of a(n):? <br/>Choose the best answer: <br/>A. MTA <br/>B. MUA <br/>C. MDA <br/>D. MLA <br/>E. All of the above<br/><br/>11. What command can you enter to find out which rpm contains the /etc/foo file? <br/>Choose the best answer: <br/>A. rpm -qa &#124;grep foo <br/>B. rpm -ql /etc/foo <br/>C. rpm -qlf /etc/foo <br/>D. rpm -q -f /etc/foo <br/>E. man foo <br/><br/>12. How can I see what directories are being shared via NFS on a remote host called fileserver? <br/>Choose the best answer: <br/>A. ping fileserver <br/>B. mount -a -t NFS fileserver <br/>C. showmount -e fileserver <br/>D. nfstalk --query fileserver <br/>E. None of the above <br/><br/>13. What command do you use to edit the default grace period for quotas? <br/>Choose the best answer: <br/>A. quotaconfig -g <br/>B. editquota -g <br/>C. quotaconfig -t <br/>D. edquota -t <br/>E. quotaeditor --grace <br/><br/>14. You want to compile a new kernel. You have just run &quot;make dep&quot;. What should you do next? <br/>Choose the best answer: <br/>A. make bzImage <br/>B. make dep <br/>C. make clean <br/>D. make mrproper <br/>E. make xconfig <br/><br/>15. What command will create the quota.user and quota.group files for me? <br/>Choose the best answer: <br/>A. quotacheck -avug <br/>B. quotacheck -cugf <br/>C. quotacheck -rugf <br/>D. repquota -u <br/>E. none of the above <br/><br/>16. You want to add a directory to all users paths. What file should you edit to do this? <br/>Choose the best answer: <br/>A. /etc/sysconfig/profile <br/>B. /etc/sysconfig/profile <br/>C. /etc/bashrc <br/>D. /etc/profile <br/>E. /etc/env <br/><br/>17. How can you turn off interface eth1? <br/>Choose the best answer: <br/>A. service network stop <br/>B. service netork stop eth1 <br/>C. ifstop eth1 <br/>D. ifdown eth1 <br/>E. ps -aux &#124;grep eth1&#124; kill `awk -f &#123;$1&#125;` <br/><br/>18. You have Linux installed on a machine and you use LILO as your boot loader. How do you boot into single user mode? <br/>Choose all correct answers: <br/>A. Wait for the machine to boot up then log in as root. Use the init 2 command. <br/>B. At the LILO prompt use the linux single command. <br/>C. At the LILO prompt use the linux 1 command. <br/>D. At the LILO prompt use the linux command. <br/>E. Linux only supports multi-user mode. <br/><br/>19. 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 <br/>default gateway to be 10.0.0.1. Which of the following is the correct syntax to accomplish this? <br/>Choose the best answer: <br/>A. route add default 10.0.0.1 eth0 <br/>B. route add default gw 10.0.0.1 dev eth0 <br/>C. route add default gw 10.0.0.2 eth0 255.255.255.0 <br/>D. route add default gw 10.0.0.2 /dev/eth0 255.255.255.0 <br/>E. route add default gw 10.0.0.2 255.255.255.0 <br/><br/>20. What command do you use to edit quotas? <br/>Choose the best answer: <br/>A. quotaconfig <br/>B. editquota <br/>C. quotaconfig <br/>D. edquota <br/>E. quotaeditor<br/><br/>21.在目录/etc/rc.d/rc3.d下，有很多以K和S开头的链接文件，这里的以S开头的文件表示_____意思。 <br/>A. stop *B. start C. sys D. sysadmin <br/><br/>22.为了观察正在不断增长的日志文件，我们可以使用系统提供的_______工具： <br/>A. uptime　 B. vmstat　*C. tail D. which <br/><br/>23. 使用at规划进程任务时，为了删除已经规划好的工作任务，我们可以使用______工具： A. atq *B. atrm 　C. rm 　D. del <br/><br/>24. Linux的i节点表从块_____开始。 <br/>A. 1 * B. 2 C. 3 D. 4 <br/><br/>25. 编译内核有选项&quot;loopback device support&quot;，该项选&quot;y&quot;，则： <br/>A. 支持加进直接运行二进制代码 B. 支持并口 *C. 支持把一个普通文件用作块设备 <br/>D. 支持网络 <br/><br/>26.我们强制用户或组使用软限额时，可以通过_______设置用户超过此数额的宽限时间 <br/>A. quotaon B. quota -u C. quota -t *D. edquota -t <br/><br/>27. 我们可以通过设置条目________来控制可以访问samba共享服务的合法主机名。 <br/>A. allowed B. hosts valid *C. hosts allow D. public <br/><br/>28.NIS服务器通常包括： <br/>* A. 主服务器 * B. 从服务器 C. 二级服务器 D. 域名服务器 <br/><br/>29.一般说来，系统中的主分区编号表示为hdax形式时，编号可能为________ <br/>* A. 3 * B. 4 C. 5 D. 6 <br/><br/>30. 使用fsck检查文件系统时，应该： <br/>* A. 卸载（unmount）将要检查的文件系统 B. 一定要在单用户模式下进行 <br/>* C. 最好使用-t选项指定要检查的文件系统类型 <br/>D. 在linux下，运行fsck对文件系统进行了改变后不必重新启动系统，系统已经将正确的信息读入。 <br/><br/>31. 常用的备份工具中不能直接实现备份级别，而是必须借助于其它工具才能实现的包括： <br/>* A. tar B. dump * C. cpio * D. afio <br/><br/>32. 关于Linux内核版本说法正确的有： <br/>* A. 遵循主版本号.次版本号.修正次数的约定 * B. 1.2.2.0表示稳定的发行版 <br/>* C. 2.2.6表示对内核2.2的第6次修正 * D. 1.3表示开发版本 <br/><br/>33. You want to compile a new kernel. You have just run &quot;make xconfig&quot;. What should you do next? <br/>Choose the best answer: <br/>A. make bzImage <br/>B. make dep <br/>C. make clean <br/>D. make mrproper <br/>E. make xconfig <br/><br/>34. How can you find out which ports are being used? <br/>Choose the best answer: <br/>A. ifconfig -a <br/>B. netstat -a <br/>C. netstat -rn <br/>D. ports <br/>E. cat /etc/services <br/><br/>35. You install Linux and reboot your machine and you see only L instead of the expected LILO. What is wrong? <br/>Choose the best answer: <br/>A. Lilo did not load at all. <br/>B. The first stage boot loader loaded but not the second stage. <br/>C. The descriptor table is corrupt. <br/>D. The second stage boot loader loaded at an incorrect address <br/>E. Nothing is wrong. <br/><br/>36. What is the correct syntax to mount an MS DOS formatted floppy disk (do not assume that there is an entry in <br/>/etc/fstab)? <br/>Choose the best answer: <br/>A. mount /dev/floppy /mnt/fd0 <br/>B. mount -t iso9660 /dev/fd0 /mnt/floppy <br/>C. mount -t vfat /dev/fd0 /mnt/floppy <br/>D. mount -t msdos /dev/floppy /mnt/floppy <br/>E. mdir <br/><br/>37. Which option can not be specified to a Client using the DHCP protocol? <br/>Choose the best answer: <br/>A. default gateway <br/>B. primary WINS server <br/>C. subnet mask <br/>D. web proxy server <br/>E. IP address <br/><br/>38. Which options to chmod allow read access to all but only allow write and execute access to the owner? <br/>Choose the best answer: <br/>A. chmod 777 filename <br/>B. chmod 700 filename <br/>C. chmod 744 filename <br/>D. chmod 447 filename <br/>E. chmod 775 filename <br/><br/>39. You are configuring a Linux DHCP server. You have it setup and working (as Linux clients are getting ip addresses from <br/>the DHCP server fine) but some Windows 95 clients are not getting ip addresses properly from your DHCP server. What do you <br/>need to do? <br/>Choose the best answer: <br/>A. route add -host 255.255.255.255 dev eth0 <br/>B. route add -net 255.255.255.255 dev eth0 <br/>C. service dhcp restart <br/>D. touch /var/state/leases <br/>E. Windows 95 is not compatible with a Linux DHCP server. <br/><br/>40. What command allows you to switch from using Gnome to using KDE? <br/>Choose the best answer: <br/>A. Xconfigurator <br/>B. Xsetup <br/>C. Xwindowconfig <br/>D. switchdesk <br/>E. videocfg <br/><br/>41. What file do you edit to set the default runlevel? <br/>Choose the best answer: <br/>A. /etc/grub.conf <br/>B. /etc/lilo.conf <br/>C. either A or B <br/>D. /etc/inittab <br/>E. /etc/runlevel <br/><br/>42. How do I immeadiately shut down a Linux system? <br/>Choose the best answer: <br/>A. Turn off the monitor then turn off the CPU. <br/>B. /sbin/stop <br/>C. init 6 <br/>D. shutdown -h now <br/>E. None of the above <br/><br/>43. How do I immeadiately shut down a Linux system? <br/>Choose the best answer: <br/>A. Turn off the monitor then turn off the CPU. <br/>B. /sbin/stop <br/>C. init 6 <br/>D. shutdown -h now <br/>E. None of the above <br/><br/>44. You have created a /home/projectfoo directory. How can you change its group ownership to the projectfoo group? <br/>Choose the best answer: <br/>A. chmod g rwx projectfoo /home/projectfoo <br/>B. chown projectfoo /home/projectfoo <br/>C. chgrp projectfoo /home/projectfoo <br/>D. newgrp projectfoo /home/projectfoo <br/>E. chown projectfoo.users /home/projectfoo <br/><br/>45. What is the correct syntax to mount an MS DOS formatted floppy disk (do not assume that there is an entry in <br/>/etc/fstab)? <br/>Choose the best answer: <br/>A. mount /dev/floppy /mnt/fd0 <br/>B. mount -t iso9660 /dev/fd0 /mnt/floppy <br/>C. mount -t vfat /dev/fd0 /mnt/floppy <br/>D. mount -t msdos /dev/floppy /mnt/floppy <br/>E. mdir <br/><br/>46. How can you create a file of all your ISA plug and play device settings? <br/>Choose the best answer: <br/>A. pnpdump &gt;. isapnp.conf <br/>B. pnpdump -isa &gt;. isapnp.conf <br/>C. isadump &gt;. isapnp.conf <br/>D. cat /proc/isa <br/>E. isaadmin --dump &gt;.isapnp.conf <br/><br/>47. You want to compile a new kernel. You have already compiled the kernel and modules. How do you install the modules? <br/>Choose the best answer: <br/>A. make modules_install <br/>B. make install <br/>C. make modules <br/>D. make install_modules <br/>E. make bzImage <br/><br/>48. Where are source RPMs installed? <br/>Choose the best answer: <br/>A. /usr/src/linux/rpms/ <br/>B. /var/src/linux/rpm/ <br/>C. /var/rpm/src/ <br/>D. /var/linux/rpm/src/ <br/>E. /usr/src/redhat/ <br/><br/>49. You have installed a DHCP server on your Linux machine and edited the configuration file. What else must you do before <br/>it will give out ip addresses? <br/>Choose the best answer: <br/>A. reboot <br/>B. Put fixed-addresses in the configuration for each client. <br/>C. service dhcp begin <br/>D. touch /var/lib/dhcp/dhcpd.leases <br/>E. All of the above <br/><br/>50. What directory contains the kernel? <br/>Choose the best answer: <br/>A. / <br/>B. /kernel <br/>C. /etc <br/>D. /boot <br/>E. /var/log <br/><br/>51. How can a user set up their own crontab entry? <br/>Choose the best answer: <br/>A. vi ~/.crontab <br/>B. cp /etc/crontab . <br/>C. crontab -v <br/>D. crontab -e <br/>E. cron -edit <br/><br/>52. The PCMCIA card configuration file is read by cardmgr (8) at startup time. It defines what resources are available for <br/>use by Card Services describes how to load and initialize device drivers and describes specific PCMCIA cards. Where is this <br/>file located? <br/>Choose the best answer: <br/>A. /etc/pcmcia/config.opts <br/>B. /etc/sysconfig/pcmcia <br/>C. /etc/config.pcmcia <br/>D. /etc/pcmcia <br/>E. /etc/pcmcia/config <br/><br/>53. What does COPS stand for? <br/>Choose the best answer: <br/>A. Company Oriented Password System <br/>B. Computer Oriented Password Security <br/>C. Computer Oracle and Password System <br/>D. Computer Oracle and Points System <br/>E. None of the above <br/><br/>54. You have a Linux machine that does not have X-Windows configured. What command can you use to find out what kind of <br/>graphics card it has? <br/>Choose the best answer: <br/>A. Xfind <br/>B. SuperProbe <br/>C. Xsetup <br/>D. cat /proc/video <br/>E. videocfg <br/><br/>55. You have just added a new NFS share to the appropriate file. What must you do to activate the share? <br/>Choose the best answer: <br/>A. reboot <br/>B. exportfs -a <br/>C. ndc restart <br/>D. server nfs start <br/>E. mount -A <br/><br/>56. Which installation class will automatically 0delete all of your DOS partitions? <br/>Choose the best answer: <br/>A. Custom <br/>B. Workstation <br/>C. Laptop <br/>D. Server <br/>E. All of the above <br/><br/>57. How do you enable quotas on a partition in /etc/fstab? <br/>Choose the best answer: <br/>A. Add the enforcequotas option. <br/>B. You dont. Quotas are turned on automatically when you install the quota rpm. <br/>C. Add the quota option. <br/>D. Add the usrquota and grpquota options. <br/>E. You put a 1 in the last column. <br/><br/>58. Which files are used to configure TCP Wrappers? <br/>Choose the best answer: <br/>A. /etc/tcpwrapper.conf and /etc/hosts.conf <br/>B. /etc/hosts.allow and /etc/hosts.deny <br/>C. /etc/tcpwrapper.conf and /etc/xinetd.conf <br/>D. /etc/access.conf and /etc/xinetd.conf <br/>E. /etc/tcpwrapper and /etc/access.conf <br/><br/>59. What file contains the configuration for BIND? <br/>Choose the best answer: <br/>A. /etc/bind.conf <br/>B. /etc/named.conf <br/>C. /etc/dns.conf <br/>D. /var/named/bind.conf <br/>E. /var/named.conf<br/>来源：http://blog.chinaunix.net/u2/69242/showart_1220123.html<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; http://blog.chinaunix.net/u2/69242/showart_1220086.html
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] 五十九道RHCE参考笔势试题 ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>