Linux 操作系统的普及

1.在大多数linux发行版本中,以下哪个属于块设备(block devices)?a.串行口b.硬盘 c.虚拟终端 d.打印机

2.下面哪个linux命令可以一次显示一页内容? a.pause b.cat c.more d.grep

3.怎样了解您在当前目录下还有多大空间? a. df b.du/ c.du . d.df .

4.怎样更改一个文件的权限设置? a.attrib b.chmod c.change d.file

5.假如您需要找出 /etc/my.conf 文件属于哪个包(package),您可以执行:a.rpm-q/etc/my.confb.rpm-requires/etc/my.conf c.rpm-qf/etc/my.confd.rpm -q | grep /etc/my.conf

6.下面哪个命令可以列出定义在以后特定时间运行一次的所有任务?a.atq b.cronc.batch d.at

7.若一台计算机的内存为128M,则交换分区的大小是______: A.64MB B.128MB C.256MB D.512MB

8.在RHEL5系统中,设置BIND域名系统的区域数据文件时,( )类型用于设置反向解析记录。(选择一项)

a)NS

b)REV

c)A

d)PTR

9.LINUX有三个查看文件的命令,如果我们希望在查看文件内容过程中用光标可以上下移动来查看文件内容,则请从下面的命令中选出符合要求的那一个。( ) A.cat B.more C.less

10.请看下面是某系统用ps –ef命令列出的正在运行的进程。请问哪个进程是运行Internet超级服务器,它监听Internet sockets上的连接,并调用合适的服务器来处理接收的信息。( ) A.root 1 4.0 0.0 344 204? S 17:09 0:00 init B.root 2 0.0 0.1 2916 1520? S 17:09 0:00 /sbin/getty C.root 3 0.0 0.2 1364 632? S 17:09 0:00 /usr/sbin/syslogd D.root 4 0.0 1344 1204? S 17:09 0:10 /usr/sbin/xinetd E.root 4 0.0 1254 632? S 17:09 0:10 /usr/sbin/named

11.在网络TCP/IP模型中ARP协议属于那一层。( ) A.应用层 B.传输层 C.网际层 D.网络接口层

12.在TCP/IP模型中,应用层包含了所有的高层协议,请问在下面列出的一些应用协议中,那一种是能够实现本地与远程主机之间的文件传输工作。( ) A.telnet B.FTP C.SNMP D.NFS

13.LINUX系统提供了一些网络测试命令,当我们与某远程网络连接不上时,就需要跟踪路由查看,以便了解在网络的什么位置出现了问题,请从下面的命令中选出满足该目的的命令。( ) A.ping B.ifconfig C.traceroute D.netstat

14.所有的LINUX文件和目录都具有拥有权和许可权,现在我们有一名为fido的文件,并用chmod 551 fido 对其进行了许可权的修改,我们用 ls –al 查看到如下的几个文件许可权信息,问那一个文件的许可权是fido文件的。( ) A.–rwxr-xr-x B.-rwxr—r-- C.-r—r—r-- D.-r-xr-x—x

16.在RHEL5系统中,为了在一个可控制的范围内给普通用户jerry赋予管理员帐号如root的部分权限,最合适的方式是( )。

A.su

B.sudo

C.将jerry用户的UID改为0

D.将jerry用户加入到wheel组

17.用ls –al 命令列出下面的文件列表,问那一个文件是符号连接文件。( ) A.-rw------- 2 hel-s users 56 Sep 09 11:05 hello B.-rw------- 2 hel-s users 56 Sep 09 11:05 goodbey C.drwx----- 1 hel users 1024 Sep 10 08:10 zhang D.lrwx----- 1 hel users 2024 Sep 12 08:12 cheng

18.DNS域名系统主要负责主机名到________的解析。 A.IP地址 B.MAC地址 C.网络地址 D.主机别名

19.WWW服务器是在Internet上使用最广泛的一种,它采用的是_______结构。 A. C/S B.B/C C.集中式 D.分布式

20.NFS是________系统。 A.文件 B.磁盘 C.网络文件 D.操作

21.在下面所列出的服务器类型中那一种可以使用户在异构网络操作系统之间进行文件系统共享的。( ) A.FTP B. Samba C.DHCP D.Squid

22.在下面的命令中,那一个可以在LINUX的安全系统中完成文件向磁带备份的工作。( ) A.cp B.tr C.dir D.cpio

23.LINUX文件系统的目录结构是一棵倒挂的树,文件都按其作用分门别类地放在相关的目录中。现有一个外部设备文件,我们应该将其放在_________目录中。 A./bin B./etc C./dev D.lib

24.LINUX系统有四种重新引导系统方式,如果我们现在需要重新启动系统时把内存中的信息写入硬盘,那么使用下面的那一个命令就可以一次实现?( ) A.# reboot B.# halt C.# sync D.# shutdown –r

25.请在下面的IP地址中选出那个是专用于本地主机的回环地址。( )。 A.202.112.0.33 B.192.10.2.254 C.255.255.255.0 D.127.0.0.1

26.在使用了shadow口令的系统中,/etc/passwd和/etc/shadow两个文件的权限正确的是:a. -rw-r----- , -r--------b. -rw-r--r-- , -r--r--r--c. -rw-r--r-- , -r--------d. -rw-r--rw- , -r-----r--

27.下面哪个参数可以删除一个用户并同时删除用户的主目录?a. rmuser -rb. deluser -rc. userdel -rd. usermgr -r

28.有一个备份程序mybackup,需要在周一至周五下午1点和晚上8点各运行一次,下面哪条crontab的项可以完成这项工作?a. 0 13,20 * * 1,5 mybackupb. 0 13,20 * * 1,2,3,4,5 mybackupc. * 13,20 * * 1,2,3,4,5 mybackupd. 0 13,20 1,5 * * mybackup

29.如何从当前系统中卸载一个已装载的文件系统a. umountb. dismountc. mount -ue. 从 /etc/fstab 中删除这个文件系统项

30.如果你的umask设置为022,缺省的,你创建的文件的权限为:a. ----w--w-b. -w--w----c. r-xr-x---d. rw-r--r--

31.在一条命令中如何查找一个二进制命令 xconfigurator 的路径?a. apropos xconfigurator b. find xconfiguratorc. where xconfiguratord. which xconfigurator

32.哪一条命令用来装载所有在 /etc/fstab 中定义的文件系统?a. amountb. mount -ac. fmountd. mount -f

33.运行一个脚本,用户不需要什么样的权限?a. readb. writec. executed. browse on the directory

34.在linux中,如何标识接在ide0上的slave硬盘的第2个扩展分区?a. /dev/hdb2b. /dev/hd1b2c. /dev/hdb6d. /dev/hd1b6

35.下面哪条命令可以把f1.txt复制为f2.txt?a. cp f1.txt | f2.txtb. cat f1.txt | f2.txtc. cat f1.txt > f2.txtd. copy f1.txt | f2.txt

36.显示一个文件最后几行的命令是:a. tacb. tailc. reard. last

37.如何快速切换到用户john的主目录下? a. cd @john b. cd #john c. cd &john d. cd ~john 38.把一个流中所有字符转换成大写字符,可以使用下面哪个命令? a. tr a-z a-z b. tac a-z a-z c. sed /a-z/a-z d. sed --toupper 39.使用什么命令可以查看linux的启动信息? a. mesg -d b. dmesg c. cat /etc/mesg d. cat /var/mesg 40.运行级定义在: a. in the kernel b. in /etc/inittab c. in /etc/runlevels d. using the rl command 41.如何装载(mount)上在 /etc/fstab 文件中定义的所有文件系统? a. mount -a b. mount /mnt/* c. mount d. cat /etc/fstab | mount 42.如果使用ln命令将生成了一个指向文件old的符号链接new,如果你将文件old删除,是否还能够访问文件中的数据? a. 不可能再访问 b. 仍然可以访问 c. 能否访问取决于file2的所有者 d. 能否访问取决于file2的权限

43.下面哪个命令用来显示系统中各个分区中inode的使用情况? a. df -i b. df -h c. free -b d. du -a -c / 44.在大多数linux发行版本中,图形方式的运行级定义为? a. 1 b. 2 c. 3 d. 5 45.如何在系统文档中找到关于print这个单词的所有说明? a. man print b. which print c. locate print d. apropos print 46.命令 man 5 passwd 含义是? a. 显示 passwd 命令的使用方法 b. 显示 passwd 文件的结构 c. 显示 passwd 命令的说明的前五行 d. 显示关于passwd的前五处说明文档。 47.如何在文件中查找显示所有以"*"打头的行? a. find \* file b. wc -l * file

c. grep -n * file d. grep \* file 48.在ps命令什么参数是用来显示所有用户的进程的? a. a b. b c. u d. x

49.如何显示linux系统中注册的用户数(包含系统用户)? a. account -l b. nl /etc/passwd |head c. wc --users /etc/passwd d. wc --lines /etc/passwd 50.在一行结束位置加上什么符号,表示未结束,下一行继续? a. / b. \ c. ; d. | 51.命令 kill 9 的含义是: a. kills the process whose pid is 9. b. kills all processes belonging to uid 9. c. sends sigkill to the process whose pid is 9. d. sends sigterm to the process whose pid is 9. 52.如何删除一个非空子目录/tmp? a. del /tmp/* b. rm -rf /tmp c. rm -ra /tmp/* d. rm -rf /tmp/* 53.对所有用户的变量设置,应当放在哪个文件下? a. /etc/bashrc b. /etc/profile c. ~/.bash_profile d. /etc/skel/.bashrc

54.在linux系统中的脚本文件一般以什么开头? a. $/bin/sh b. #!/bin/sh c. use /bin/sh d. set shell=/bin/sh 55.下面哪种写法表示如果cmd1成功执行,则执行cmd2命令? a. cmd1&&cmd2 b. cmd1|cmd2 c. cmd1;cmd2 d. cmd1||cmd2

56.在linux中,提供tcp/ip包过滤功能的软件叫什么? a. rarp b. route c. ipchains d. filter

57.使用什么命令检测基本网络连接? a. ping b. route c. netstat d. ifconfig 58.下面哪个协议使用了二个以上的端口? a. telnet b. ftp c. rsh d. http 59.在ppp协议中,哪个认证协议不以明文传递密码? a. pam b. pap c. pgp d. chap 60.下面哪个文件系统应该分配最大的空间? a. /usr b. /lib c. /root d. /bin 61.如何在debian系统中安装rpm包? a. alien pkgname.rpm b. dpkg --rpm pkgname.rpm c. dpkg --alien pkgname.rpm d. alien pkganme.rpm ;dpkg -i pkganme.deb

62什么命令用来只更新已经安装过的rpm软件包? a. rpm -U *.rpm b. rpm -F *.rpm c. rpm -e *.rpm d. rpm -q *.rpm

63.下面哪个命令可以压缩部分文件: a. tar -dzvf filename.tgz * b. tar -tzvf filename.tgz * c. tar -czvf filename.tgz * d. tar -xzvf filename.tgz *

64.linux与windows 95的网上领居互联,需要提供什么daemon? a. bind b. smbd c. nmbd d. shard 65.对于apache服务器,提供的子进程的缺省的用户是: a. root b. apachec. httpd d. nobody 66.sendmail中缺省的未发出信件的存放位置是: a. /var/mail/ b. /var/spool/mail/ c. /var/spool/mqueue/ d. /var/mail/deliver/

67.apache的主配置文件是: a. httpd.conf b. httpd.cfg c. access.cfg d. apache.conf

68在 bash shell 环境下,当一命令正在执行时,按下 control-z 会: a. 中止前台任务 b. 给当前文件加上 eof. c. 将前台任务转入后台 d. 注销当前用户 69定义bash环境的用户文件是: a. bash & .bashrc b. bashrc & .bash_conf c. bashrc & bash_profile d. .bashrc & .bash_profile

70.如何查看一个rpm软件的配置文件的存放位置? a. rpm -qc rpm1 b. rpm -vc rpm1 c. rpm --config rpm1 d. rpm -qa --config rpm1

71.ping使用的协议是: a. tcp b. udp c. smb d. icmp 72.下面哪个命令不是用来查看网络故障的? a. ping b. init c. telnet d. netstat 73.拨号上网使用的协议通常是: a. ppp b. uucp c. slip d. ethernet 74.tcp/ip中,哪个协议是用来进行ip自动分配的? a. arp b. nfs c. dhcp d. ddns 75.下面哪个文件定义了网络服务的端口? a. /etc/netport b. /etc/services c. /etc/server d. /etc/netconf 76.下面哪个功能用来生成一个文件的校验码? a. md5 b. tar c. crypt d. md5sum 77.缺省的,用户邮件放在: a. ~/mail/ b. /var/mail/ c. /var/mail/spool/ d. /var/spool/mail/

78.在哪个文件中保存了sendmail的别名? a. /etc/aliases b. /etc/mailaliases c. /etc/sendmail.aliases d. /etc/sendmail/aliases 79.smbd and nmbd daemons 的配置文件是: a. /etc/exports b. /etc/samba/smb.conf c. /etc/samba/config d. /usr/local/samba.cfg 80.下面哪个命令用来卸载一个内核模块? a. rmmod b. unmod c. delmod d. modprobe

81.什么命令显示所有装载的模块? a. lsmod b. dirmod c. modules d. modlist

82.在RHEL5系统中,通过DHCP服务器的host声明为特定主机分配保留IP地址时,使用( )配置关键字指定相应的MAC地址。(选择一项)

a)mac-adress

b)hardware ethernet

c)fixed-address

d)match-physical-address

83.在RHEL5系统中,( )配置文件用于保存当前主机所使用的DNS服务器地址。(选择一项)

a)/etc/hosts

b)/etc/host.conf

c)/etc/resolv.conf

d)/etc/resolve.conf

84.在RHEL5系统中,Samba服务使用( )安全级别时,需要通过其他的服务器主机对用户帐号进行验证。(选择两项)

a)share

b)user

c)server

d)domain

85在RHEL5系统中,若要设置允许匿名FTP用户上传文件,应在vsftpd.conf文件中添加( )配置参数。(选择两项)

a)local_enable=YES

b)write_enable=YES

c)anon_upload_enable=YES

d)upload_enable=YES

86在BIND域名解析系统中,"benet.com"域的官方解析记录由该区域的( )域名服务器负责维护。(选择一项)

a)根

b)缓存

c)主

d)从

87.在RHEL5系统中,通过调整httpd.conf文件的( )配置参数,可以更改Apache站点默认识别的首页文件(例如,更改为default.html)。(选择一项)

a)DocumentRoot

b)ServerRoot

c)DirectoryIndex

d)DefaultIndex

88.在RHEL5系统中,依次执行了下列iptables规则设置语句,则根据该策略配置,从IP地址为192.168.4.4的客户机中ping防火墙主机的数据包将会被( )。(选择一项)

ptables -F INPUT

iptables -A INPUT -p icmp -j REJECT

iptables -I INPUT -p icmp -s 192.168.4.0/24 -j LOG

iptables -I INPUT -p icmp -s 192.168.4.0/24 -j DROP

iptables -P INPUT ACCEPT

a)ACCEPT

b)DROP

c)REJECT

d)LOG之后DROP

89.在RHEL5系统中设置iptables规则时,以下( )可用于匹配192.168.0.20/24~192.168.0.50/24范围内的源IP地址。(选择一项)

a)-s 192.168.0.20:50

b)-s 192.168.0.20-50/24

c)-m iprange --src-range 192.168.0.20-50/24

d)-m iprange --src-range 192.168.0.20-192.168.0.50

90.在RHEL5系统中,使用iptables防火墙的( )策略可以实现局域网客户机共享一个公网IP地址上网的企业应用。(选择两项)

a)SNAT

b)DNAT

c)MASQUERADE

d)REDIRECT

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

92. What does the -H option do for the dhcphd 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 93. 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 94. 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 95. 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

96. Sendmail is an example of a(n):? Choose the best answer: A. MTA B. MUA C. MDA D. MLA E. All of the above

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

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

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

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

查看原文 >>
相关文章