Linux基础---第三天作业--创建目录熟悉vim命令
发布时间
阅读量:
阅读量
1:创建目录test:
·在test目录下通过两种途径生成文本文件text1.txt与text2.txt
(1):首种方法:采用touch命令
[root@localhost ~]# mkdir test
[root@localhost ~]# cd test/
[root@localhost test]# touch text1.txt
[root@localhost test]# ls
text1.txt
[root@localhost test]#
(2):第二种途径:vim / vi
[root@localhost ~]# mkdir test
[root@localhost ~]# cd test/
[root@localhost test]# vim text2.txt
[root@localhost test]# ls
text2.txt
[root@localhost test]#
·在文件text1.txt中,通过vim进行内容输入操作,具体写入如下文本:
Welcome to my Linux.
Y
全部评论 (0)
还没有任何评论哟~
