操作系统课内实验一:Linux操作系统基础 ()B() 学号: 姓名:
【显示结果2-2分钟后其它已登陆终端】
4.5 利用vi编辑文本文件
【操作要求1】利用vi新建test文件,具体内容如下,保存在个人用户主目录中,退出。 How to Read Faster.
When I was a schoolboy I must have read every comic book ever published. But as I got older, my eyeballs must have slowed down or something I mean, comic books started to pile up faster then I could
16 / 30
操作系统课内实验一:Linux操作系统基础 ()B() 学号: 姓名:
read them!
It wasn’t until much later, when I was studying at colleague; I realized that it wasn’t my eyeballs that had gone wrong. They’re still moving as well as ever. The problem is that there’s too much to read these days, and too little time to read every WORD of it. 注:“Enter”键是换行。 【操作步骤1-shell】
【过程-新建test文件】
17 / 30
操作系统课内实验一:Linux操作系统基础 ()B() 学号: 姓名:
【操作步骤2-存盘、退出】
【操作要求2】打开test文件,在第一行后插入新行,内容如下:
“With the development of society, the ability of reading becomes more and more important.”,并在最后一行后插入新行,内容如下:
18 / 30
操作系统课内实验一:Linux操作系统基础 ()B() 学号: 姓名:
“We must know some methods to read faster.”
【操作要求3】将文本中所有“eyeballs”字符串用“eye-balls” 字符串替换。 【文本块操作命令】
19 / 30
操作系统课内实验一:Linux操作系统基础 ()B() 学号: 姓名:
【操作要求4】将第二行内容移动到文件的最后;删除第一和第二行;并恢复删除;存盘退出。 【操作命令1】
20 / 30