文档详情

[linux复习题作业.doc

发布:2017-01-21约1.27万字共14页下载文档
文本预览下载声明
一、选择:(每题1.5分 共18分) 1、当用超级用户执行时,执行cd ~后,执行pwd命令,最后出现那种结果(B) A /home/student B /root C .. D ~ 执行cd ~后,执行pwd命令,最有可能出现那种结果(AD) A /home/student B /etc C .. D ~ 3、文件passwd是一个系统配置文件,它位于( B)目录下。   A /tmp B /etc C /bin D /sbin 4、文件gshadow是一个系统配置文件,它位于( B )目录下。 A /tmp B /etc C /bin D /sbin 5、对于普通用户,所能执行的命令多数保存在(C) A /tmp B /etc C /bin D /sbin 6、下列那个命令行可列出/etc/passwd文件中含有root这个文本的行?( A) A grep root /etc/group B echo root |grep /etc/group C echo /etc/group |grep root D A 和 C 7、下列哪个命令行可列出文件/usr/share/dict/words 中含有sun 这个文本的所有行及其行号:(A) A grep –n sun /usr/share/dict/words B grep –N /usr/share/dict/words sun C grep –r sun /usr/share/dict/words D grep –r /usr/share/dict/words sun 8、下列哪一项可以列出文件 /etc/services 中含有文本ftp的行(D) A echo ftp /etc/services B echo ftp /etc/services C grep ftp -q /etc/services D grep ftp /etc/services 9、以下哪种方式不能获得ls命令的帮助(B) A help ls B ls –help C man ls D pinfo ls 10、执行ping 命令时,使用哪个键可结束此进程( C ) A ctrl + Z B tab C ctrl + C D ctrl + D 11、安装好的二进制包使用rpm –ql查看,通常帮助文档位于什么位置(A ) A /usr/share/doc B /usr/doc C /usr/doc/share D /tmp/doc/ 用户hogan已经设置了以下crontab配置,根据该配置回答下列三个问题: 05 * * * * /usr/bin/who 10 04 * * * /usr/bin/find /home -size +100M 15 04 * * 1-5 /bin/weekly 11、who命令多久运行一次?(A ) A 每小时一次 B 每天一次 C 每周一次 D 每月一次 12、find命令何时运行?(B) A 每天早上10:04运行一次 B 每天早上4:10运行一次 C 每年10月4日运行一次 D 每年4月10日运行一次 13、脚本cron.weekly何时运行?(D) A 每月1-5号早上4点15分 B 每月15日早上5:04 C 每周四下午3:04 D 每周一到周五4点15 14、文件named.conf是一个系统配置文件,它位于(B ) A /tmp B /etc C /bin D /sbin 15、哪个文件中含有用户信息数据库?(D) A /etc/user.dat B /etc/passwd.dat C /etc/users D /etc/passwd 16、下列哪一项可以列出文件 /etc/nsswitch.conf 中含有文本nisplus的行( D) A grep nisplus /etc/nsswitch.conf B grep nisplus /etc/nsswitch.conf C grep nisplus -q /etc/nsswitch.conf D 只有A和B 17、浏览man page时,使用哪个键可退出man调页程序(C) A
显示全部
相似文档