aix系统应用基础-练习题5-vi编辑器ppt课件_第1页
aix系统应用基础-练习题5-vi编辑器ppt课件_第2页
aix系统应用基础-练习题5-vi编辑器ppt课件_第3页
aix系统应用基础-练习题5-vi编辑器ppt课件_第4页
aix系统应用基础-练习题5-vi编辑器ppt课件_第5页
已阅读5页,还剩18页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、答案:答案:A Which of the following vi commands would be used to change the next two words?A. c2wB. 2RC. 2cwD. r2答案:答案:B Which key should be pressed in the vi editor to enter text-input mode and begin inserting text BEFORE the cursor position?A. aB. iC. $D. o答案:答案:C Which of the following commands would

2、be used to move the current line of text?A. yyB. “a1yyC. dd D. :”a1dd答案:答案:C Which of the following is the vi editor command that will delete one word at a time while in command mode?A. ccB. ddC. dw D. rw答案:答案:B Which of the following commands will save the file the user is editing and not exit vi?A

3、. :wqB. :w C. :xD. ZZ答案:答案:A Which command can be used to enter the vi editor and create the file “myfile” without generating any errors?A. vi myfileB. vi -c myfileC. vi -y myfileD. vi -t myfile答案:答案:D Which vi command can be used to change the location of the cursor position to line 16 of a file?A.

4、 16B. j16C. /16D. :16 答案:答案:B Which of the following vi commands would be used to change all occurrences of the word “text” to the string “my text”?A. :/text/s/my text/gB. :g/ text /s/ my text /gC. :g/text /s/my text /gD. :g/text/s/my text/g答案:答案:A Which vi command string searches a file for the fir

5、st instance of the phrase “the one and only”A. /the one and only/B. /the one and only/C. /the one and only/sD. /the one and only/g答案:答案:C Which vi command can be used to copy a line of text into the text buffer?A. iB. rC. yy D. cc答案:答案:B Which of the following vi commands could be used to delete the

6、 current line of text and enter insert mode?A. ddB. ccC. iD. C答案:答案:D Which of the following vi commands would be used to search backwards from the current position for the word string?A. /stringB. /string/C. :/stringD. ?string答案:答案:C D Which vi command is used to concatenate two sequential lines to

7、gether?A. cB. CC. J D. :join 答案:答案:A Which key should be pressed in the vi editor to enter text-input mode and begin inserting text AFTER the cursor position?A. a B. OC. iD. e答案:答案:D Which of the following is the vi editor command that delete the rest of the line after the cursor position while in c

8、ommand mode?A. rB. dC. $dD. D 答案:答案:D Which vi command would be used to delete text from the current cursor position to the end of the line?A. ddB. dbC. XD. d$ 答案:答案:D Which of the following commands would be used to insert the text in buffer a on the line above the current line?A. :”aB. “apC. “alD.

9、 “aP 答案:答案:A Which command is used to exit the vi editor without saving the data?A. :q! B. :e!C. :wq!D. ZZ答案:答案:B Which of the following commands would display all of the current vi options?more $HOME/.exrcB. :set allC. :setD. :set list答案:答案:D Which of the following vi commands would be used to change only the current character?A. RB. cC. ccD. r 答案:答案:C Which vi command is used to reverse the last action taken?A. rB. cC. u D. x答案:答案:C Which vi command should be used to position the cursor at the end of the current line?A. 0B. aC. $ D. e答案:答案:B What is contained in the .exrc file?A. the

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论