五十几道伤|五十几道RHCE参考笔试试题(一)

Linux试题集锦 2021-07-30 网络整理 可可

【shitiku.jxxyjl.com--Linux试题集锦】

1. what file do i edit to prevent specific users from accessing 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          

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

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

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

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

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

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

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

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

10. sendmail is an example of a(n):? 
choose the best answer: 
a. mta 
b. mua 
c. mda 
d. mla 
e. all of the above

本文来源:https://shitiku.jxxyjl.com/linuxshitijijin/6833.html

Copyright @ 2011- 考试题库网 All Rights Reserved. 版权所有

免责声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。

 站长统计