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

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

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

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

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

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

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

 站长统计