二维码

Linux试题及答案

1903 人阅读 | 时间:2020年01月04日 12:13

下面的选择题均为单选题)

1、cron 后台常驻程序 (daemon) 用于:

a. 负责文件在网络中的共享

b. 管理打印子系统 manages the printing subsystem

c. 跟踪管理系统信息和错误

d. 管理系统日常任务的调度 (scheduling)

2、在大多数 linux 发行版本中,以下哪个属于块设备 (block devices) ?

a. 串行口

b. 硬盘

c. 虚拟终端

d. 打印机

3、下面哪个 linux 命令可以一次显示一页内容?

a. pause

b. cat

c. more

d. grep

4、怎样了解您在当前目录下还有多大空间?

a. use df

b. use du /

c. use du .

d. use df .

5、怎样更改一个文件的权限设置?

a. attrib

b. chmod

c. change

d. file

6、假如您需要找出 /etc/my.conf 文件属于哪个包 (package) ,您可以执行:

a. rpm -q /etc/my.conf

b. rpm -requires /etc/my.conf

c. rpm -qf /etc/my.conf

d. rpm -q | grep /etc/my.conf

7、假如当前系统是在 level 3 运行,怎样不重启系统就可转换到 level 5 运行?

a. set level = 5

b. telinit 5

c. run 5

d. alt-f7-5

8、那个命令用于改变 ide 硬盘的设置?

b. ideconfig

c. hdparm

d. hddparm

9、下面哪个命令可以列出定义在以后特定时间运行一次的所有任务?

a. atq

b. cron

c. batch

d. at

10、下面命令的作用是:set ps1="[\u\w\t]\\$",export ps1

a. 改变错误信息提示

b. 改变命令提示符

c. 改变一些终端参数

d. 改变辅助命令提示符

01.d 02.b 03.c 04.c


05.b 06.c 07.b 08.c 09.a


10.b

11、作为一个管理员,你希望在每一个新用户的目录下放一个文件 .bashrc ,那么你应该在哪个目录下放这

个文件,以便于新用户创建主目录时自动将这个文件复制到自己的目录下。

a. /etc/skel/

b. /etc/default/

c. /etc/defaults/

d. /etc/profile.d/

12、在 bash 中,export 命令的作用是:

a. 在子 shell 中运行条命令

b. 使在子 shell 中可以使用命令历史记录

c. 为其它应用程序设置环境变量

d. 提供 nfs 分区给网络中的其它系统使用

13、在使用了 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--

14、下面哪个参数可以删除一个用户并同时删除用户的主目录?

a. rmuser -r

b. deluser -r

c. userdel -r

Linux试题及答案

Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案


15、有一个备份程序 mybackup,需要在周一至周五下午 1 点和晚上 8 点各运行一次,下面哪条 crontab 的

项可以完成这项工作?

 

 

a. 0 13,20 * * 1,5 mybackup

b. 0 13,20 * * 1,2,3,4,5 mybackup

c. * 13,20 * * 1,2,3,4,5 mybackup

d. 0 13,20 1,5 * * mybackup

 

16、如何从当前系统中卸载一个已装载的文件系统

a. umount

b. dismount

c. mount -u

e. 从 /etc/fstab 中删除这个文件系统项

 


 

17、如果你的 umask 设置为 022,缺省的,你创建的文件的权限为:

a. ----w--w-

b. -w--w----

c. r-xr-x---

d. rw-r--r--

  

18、在一条命令中如何查找一个二进制命令 xconfigurator 的路径?

a. apropos xconfigurator

b. find xconfigurator

c. where xconfigurator

d. which xconfigurator

 

19、哪一条命令用来装载所有在 /etc/fstab 中定义的文件系统?

a. amount

b. mount -a

c. fmount

d. mount -f

 

20、运行一个脚本,用户不需要什么样的权限?

a. read

b. write

c. execute

d. browse on the directory

Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案


 

21、在 linux 中,如何标识接在 ide0 上的 slave 硬盘的第 2 个扩展分区?

a. /dev/hdb2

b. /dev/hd1b2

c. /dev/hdb6

d. /dev/hd1b6


22、在应用程序起动时,如何设置进程的优先级?

a. priority

b. nice

c. renice

d. setpri


23、在 bash 中, 在一条命令后加入 "1>&2" 意味着:

a. 标准错误输出重定向到标准输入

b. 标准输入重定向到标准错误输出

c. 标准输出重定向到标准错误输出

d. 标准输出重定向到标准输入

 

24、下面哪条命令可以把 f1.txt 复制为 f2.txt?

a. cp f1.txt | f2.txt

b. cat f1.txt | f2.txt

c. cat f1.txt > f2.txt

d. copy f1.txt | f2.txt

 

 25、显示一个文件最后几行的命令是:

a. tac

b. tail

c. rear

d. last

 

26、如何快速切换到用户 john 的主目录下?

a. cd @john

b. cd #john

c. cd &john

d. cd ~john

  

27、把一个流中所有字符转换成大写字符,可以使用下面哪个命令?

a. tr a-z a-z

b. tac a-z a-z

Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案Linux试题及答案

 

28、使用什么命令可以查看 linux 的启动信息?

a. mesg -d

b. dmesg

c. cat /etc/mesg

d. cat /var/mesg

 

29、运行级定义在:

a. in the kernel

b. in /etc/inittab

c. in /etc/runlevels

d. using the rl command

  

30、如何装载(mount)上在 /etc/fstab 文件中定义的所有文件系统?

a. mount -a

b. mount /mnt/*

c. mount

d. cat /etc/fstab | mount

21.c 22.b 23.c


24.c 25.d 26.d 27.a 28.b 29.b 30.a

  

31、如果使用 ln 命令将生成了一个指向文件 old 的符号链接 new,如果你将文件 old 删除,是否还能够访

问文件中的数据?

a. 不可能再访问

b. 仍然可以访问

c. 能否访问取决于 file2 的所有者

d. 能否访问取决于 file2 的权限 来源:考试大 - Linux 认

32、在 ext2fs 文件系统中,缺省的为 root 用户保留多大的空间?

a. 3%

b. 5%

c. 10%

d. 15%

  

33、下面哪个命令用来显示系统中各个分区中 inode 的使用情况?

a. df -i

b. df -h

c. free -b

d. du -a -c /

  

34、在大多数 linux 发行版本中,图形方式的运行级定义为?

a. 1

b. 2

c. 3

d. 5

 

35、如何在系统文档中找到关于 print 这个单词的所有说明?

a. man print

b. which print

c. locate print

d. apropos print

  

36、命令 man 5 passwd 含义是?

a. 显示 passwd 命令的使用方法

b. 显示 passwd 文件的结构

c. 显示 passwd 命令的说明的前五行

d. 显示关于 passwd 的前五处说明文档。

 

 37、如何在文件中查找显示所有以"*"打头的行?

a. find \* file

b. wc -l *

c. grep -n * file

d. grep \* file

  

38、在 ps 命令什么参数是用来显示所有用户的进程的?

a. a

b. b

c. u

d. x 来源:考试大 - Linux 认

  

39、显示二进制文件的命令是?

a. od

b. vil

c. view

d. binview

  

40、如何显示 linux 系统中注册的用户数(包含系统用户)?

a. account -l

b. nl /etc/passwd |head

c. wc --users /etc/passwd

d. wc --lines /etc/passwd


31.a 32.c


 33.a 34.d 35.d 36.b 37.d 38.a 39.a


 40.d

 

41、在一行结束位置加上什么符号,表示未结束,下一行继续?

a. /

b. \

c. ;

d. |


 

 

 

 

 

 

 

 

42、命令 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.

 

 

43、如何删除一个非空子目录/tmp?

a. del /tmp/*

b. rm -rf /tmp

c. rm -ra /tmp/*

d. rm -rf /tmp/*

 

 

44、使用什么命令可以在今天午夜运行命令 cmd1 ?

a. at midnight cmd1

b. cron -at "00:00" cmd1

c. batch -t "00:00"

d. echo "cmd1" | at midnight

45、你的系统使用增量备份策略,当需要恢复系统时,你需要按什么顺序恢复备份数据?

a. 最后一次全备份,然后从最早到最近的增量备份

b. 最后一次全备份,然后从最近到最早的增量备份

c. 最早到最近的增量备份,然后最后一次全备份

d. 最近到最早的增量备份,然后最后一次全备份

 

 

46、对所有用户的变量设置,应当放在哪个文件下?

a. /etc/bashrc

b. /etc/profile

c. ~/.bash_profile

d. /etc/skel/.bashrc

 

 

47、linux 系统中,一般把命令 ls 定义为 ls --color 的别名,以便以不同颜色来标识不同类型的文件。但是,

如何能够使用原先的 ls 命令?

a. \ls

b. ;ls

c. ls $$

d. ls --noalias

 

 

48、在 linux 系统中的脚本文件一般以什么开头?

a. $/bin/sh

b. #!/bin/sh

c. use /bin/sh

d. set shell=/bin/sh

 

 

49、下面哪种写法表示如果 cmd1 成功执行,则执行 cmd2 命令?


 

 

 

 

 

 

 

 

b. cmd1|cmd2

c. cmd1;cmd2

d. cmd1||cmd2

 

 

50、在哪个文件中定义网卡的 i/o 地址?

a. cat /proc/modules

b. cat /proc/devices

c. cat /proc/ioports

d. cat /io/dma


41.b 42.d 43.d 44.d 45.b 46.b 47.a 48.b 49.a

 

 

来源:考试大 - Linux

51、在 linux 中,提供 tcp/ip 包过滤功能的软件叫什么?

a. rarp

b. route

c. ipchains

d. filter

 

 

52、如何暂停一个打印队列?

a. lpr

b. lpq

c. lpc

d. lpd

 

 

53、在 vi 中退出不保存的命令是?

a. :q

b. :w

c. :wq

d. :q!

 

 

54、在 xfree86 3.x 中, 缺省的字体服务器为:

a. xfs

b. xfserv

c. fonts

d. xfstt

 

 

55、使用什么命令检测基本网络连接?

a. ping

b. route

c. netstat

d. ifconfig

 

 

56、下面哪个协议使用了二个以上的端口?


50.c


 

 

 

 

 

 

 

 

b. ftp

c. rsh

d. http

 

 

57、在 ppp 协议中,哪个认证协议不以明文传递密码?

a. pam

b. pap

c. pgp

d. chap

 

 

58、下面哪个文件系统应该分配最大的空间?

a. /usr

b. /lib

c. /root

d. /bin

 

 

59、如何在 debian 系统中安装 rpm 包?

a. alien pkgname.rpm

b. dpkg --rpm pkgname.rpm

c. dpkg --alien pkgname.rpm

d. alien pkganme.rpm ;dpkg -i pkganme.deb

 

 

60、在安装软件时下面哪一步需要 root 权限?

a. make

b. make deps

c. make config

d. make install


51.c 52.c


53.d 54.a 55.a 56.b 57.d 58.a


59.d 60.d


 

 

61、什么命令用来只更新已经安装过的 rpm 软件包?

a. rpm -u *.rpm

b. rpm -f *.rpm

c. rpm -e *.rpm

d. rpm -q *.rpm

 

 

62、在 windows98 与 linux 双起动的系统中,如果要让 lilo 管理引导,则 lilo 应该放在:

a. mbr

b. /

c. root 分区的首扇区

d. /lilo

 

 

63、ldconfig 的配置文件是

a. /lib/ld.so


 

 

 

 

 

 

 

 

c. /etc/ld.so.cache

e. /etc/modules.conf

 

 

64、下面哪个命令可以压缩部分文件:

a. tar -dzvf filename.tgz *

b. tar -tzvf filename.tgz *

c. tar -czvf filename.tgz *

d. tar -xzvf filename.tgz * 来源:考试大

 

 

65、网络服务的 daemon 是:

a. lpd

b. netd

c. httpd

d. inetd

 

 

66、linux 与 windows 95 的网上领居互联,需要提供什么 daemon?

a. bind

b. smbd

c. nmbd

d. shard

 

 

67、对于 apache 服务器,提供的子进程的缺省的用户是:

a. root

b. apached

c. httpd

d. nobody

 

 

68、sendmail 中缺省的未发出信件的存放位置是:

a. /var/mail/

b. /var/spool/mail/

c. /var/spool/mqueue/

d. /var/mail/deliver/

 

 

69、apache 的主配置文件是:

a. httpd.conf

b. httpd.cfg

c. access.cfg

d. apache.conf

 

 

70、关于可装载的模块,装载时的参数,如 i/o 地址等的存放位置是:

a. /etc/conf.modules

b. /etc/lilo.conf

c. /boot/system.map


 

 

 

 

 

 

 

 

 

 

61.b 62.a 63.b 64.c


 

 

 

 

 

 

 

 

 

65.d 66.b 67.d 68.c 69.a 70.a


 

 

71、在 linux 中,如何关闭邮件提示?

a. biff n

b. mesg n

c. notify off

d. set notify=off

 

 

72、在 bash shell 环境下,当一命令正在执行时,按下 control-z 会:

a. 中止前台任务

b. 给当前文件加上 eof.

c. 将前台任务转入后台

d. 注销当前用户

 

 

73、定义 bash 环境的用户文件是:

a. bash & .bashrc

b. bashrc & .bash_conf

c. bashrc & bash_profile

d. .bashrc & .bash_profile

 

 

74、下面哪条命令用来显示一个程序所使用的库文件?

a. ldd

b. ld so

c. modprobe

d. ldconfig

 

 

75、如何查看一个 rpm 软件的配置文件的存放位置?

a. rpm -qc rpm1

b. rpm -vc rpm1

c. rpm --config rpm1

d. rpm -qa --config rpm1 来源:考试大

 

 

76、如何查看一个 rpm 软件的修改记录?

a. rpm -vc postfix

b. rpm -qpil postfix

c. rpm --changelog postfix

d. rpm -q --changelog postfix

 

 

77、通过 makefile 来安装已编译过的代码的命令是:

a. make

b. install

c. make depend


 

 

 

 

 

 

 

 

 

 

78、什么命令解压缩 tar 文件?

a. tar -czvf filename.tgz

b. tar -xzvf filename.tgz

c. tar -tzvf filename.tgz

d. tar -dzvf filename.tgz

 

 

79、在 xf86config 配置文件中,哪个段用来设置字体文件?

a. the fonts section.

b. the files section.

c. the xfscodes section.

d. the graphics section.

 

 

80.8 bit color 指的是

a. 64k colors

b. 16k colors

c. 256 colors

d. 16m colors


71.a 72.c


73.d 74.a 75.a 76.d 77.d 78.b 79.b 80.c


 

 

81、下面哪个文件用来设置 x window 的显示分辨率?

a. xinit

b. xinitrc

c. xf86setup

d. xf86config

 

 

82、哪个变量用来指定一个远程 x 应用程序将输出放到哪个 x server 上?

a. display

b. term

c. echo

d. output

 

 

83、在 xdm 的配置目录中,哪个文件用来设置在用户通过 xdm 登录后自动起动的应用程序?

a. the xsession file

b. the xsetup_0 file

c. the xstart_up file

d. the giveconsole file 来源:考试大

 

 

84、命令 netstat -a 停了很长时间没有响应,这可能是哪里的问题?

a. nfs.

b. dns.

c. nis.

d. routing.


 

 

 

 

 

 

 

 

85、ping 使用的协议是:

a. tcp

b. udp

c. smb

d. icmp

 

 

86、下面哪个命令不是用来查看网络故障的?

a. ping

b. init

c. telnet

d. netstat

 

 

87、拨号上网使用的协议通常是:

a. ppp

b. uucp

c. slip

d. ethernet

 

 

88、tcp/ip 中,哪个协议是用来进行 ip 自动分配的?

a. arp

b. nfs

c. dhcp

d. ddns

 

 

89、下面哪个文件定义了网络服务的端口?

a. /etc/netport

b. /etc/services

c. /etc/server

d. /etc/netconf

 

 

90、下面哪个功能用来生成一个文件的校验码?

a. md5

b. tar

c. crypt

d. md5sum


81.d 82.a 83.b 84.b 85.d 86.b 87.a

 

 

 

 

91、缺省的,用户邮件放在:

a. ~/mail/

b. /var/mail/

c. /var/mail/spool/

d. /var/spool/mail/ 来源:考试


88.c 89.b 90.a


 

 

 

 

 

 

 

 

a. /etc/nfs

b. /etc/nfs.conf

c. /etc/exports

d. /etc/netdir

 

 

93、如何停止一台机器的 telnet 服务?

a. put none in /etc/telnet.allow

b. put a line ’all:all’ in /etc/hosts.deny

c. comment the telnet entry in /etc/inittab

d. comment the telnet entry in /etc/inetd.conf

 

 

94、在哪个文件中保存了 sendmail 的别名?

a. /etc/aliases

b. /etc/mailaliases

c. /etc/sendmail.aliases

d. /etc/sendmail/aliases

 

 

95、smbd and nmbd daemons 的配置文件是:

a. /etc/exports

b. /etc/smb.conf

c. /etc/samba/config

d. /usr/local/samba.cfg

 

 

96、下面哪个命令用来卸载一个内核模块?

a. rmmod

b. unmod

c. delmod

d. modprobe

97、什么情况下必须运行 lilo

a. once a day from cron

b. once a week from cron

c. after installing a new kernel

d. after installing a new module

 

 

98、什么命令显示所有装载的模块?

a. lsmod

b. dirmod

c. modules

d. modlist

 

 

99、下面哪个命令刷新打印机队列?

a. lpflush

b. lprm -


 

 

 

 

 

 

 

 

d. lprm all

 

 

100、下面哪个命令可以查看网卡的中断?

a . cat /proc/ioports

b. cat /proc/interrupts

c. cat /proc/memoryinfo

d. which interrupts


91.d 92.c 93.d 94.a


95.b 96.a 97.c 98.a


99.b 100. 来


©著作权归作者所有:来自ZhiKuGroup博客作者没文化的原创作品,如需转载,请注明出处,否则将追究法律责任 来源:ZhiKuGroup博客,欢迎分享。

评论专区
  • 昵 称必填
  • 邮 箱选填
  • 网 址选填
◎已有 0 人评论
搜索
作者介绍
30天热门
×
×
本站会员尊享VIP特权,现在就加入我们吧!登录注册×
»
会员登录
新用户注册
×
会员注册
已有账号登录
×