UNIX试卷及课后习题与答案.doc

  1. 1、本文档共44页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
UNIX试卷及课后习题与答案

试卷A 一、单项选择题(在每小题的备选答案中,选出正确的答案。请将答案填写在答题纸上,每小题1分,共20分) 1. You want to save vi changes to the file myfile with : w!. but vi complains it can not write to the file. Therefore, you want to check the write permissions on the file. To do this without leaving vi, you type: A. :!ls -l myfile B. :\s -l myfile C. esc:ls -l myfile D. :?ls -l myfile 2. What is the proper option to put in /etc/fstab to enable user quotas for a particular partition? A. usrquota B. userquota C. userquoatas D. usrquotas 3. Which of the following commands would display the lines containing capital letters from the file turkey.txt ? A. cat turkey .txt |wc - | B. grep -n [A-Z] turkey.txt C. cat turkey.tst |wc -w [A-Z] D. grep -v [A-Z] turkey.txt E. for [A-Z] in turkey.txt I count 4. What run level represents multi-user? A. 3 B. 0 C. 1 D. 5 5. Which of the following can be used to switch your system to run level 1? A. init 1 B. inittab 1 C. rlevel 1 D. level 1 6. What would the following line accomplish if run as root? chown -R bert /home/bert/* A. Nothing, this command is invalid. B. It would revoke berts ownership from his home directory to root. C. It would change user ownership of all files in /home/bert to bert. D. It would set the group ownership of the directory /home/bert to bert. E. It would set ownership of all files and subdirectories in /home/bert to bert. 7. If you set the umask to 022, by default what permissions will your files have? A. 0220 B. 0557 C. 0644 D. 0755 8. What are the default permissions for the Red Hat /etc/passwd file? A. 644 B. 640 C. 400 D. 641 E. 440 9. How can you set the SGID on a file called happylinuxexaminator? A. chmod u+s happylinuxexaminator B. chmod g+s happylinuxexaminator C. chmod o+s happylinuxexaminator D. chmod u+t happylinuxexaminator 10. Which one of the following programs will only find fi

文档评论(0)

wh90404 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档