五十几道RHCE参考笔试试题(二)
来源:优易学  2011-11-29 20:06:45   【优易学:中国教育考试门户网】   资料下载   IT书店
11. 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         

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

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

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

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

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

17. 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}`         

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

20. What command do you use to edit quotas?
Choose the best answer:
A. quotaconfig
B. editquota
C. quotaconfig
D. edquota
E. quotaeditor 

责任编辑:小草

文章搜索:
 相关文章
热点资讯
热门课程培训