在/tmp目录下,新建目录director新建三个txt文件,分别命名为filel、file2、file3,用vi编辑器分别在三个文件中输入内容。
cd /tmp
mkdir director
cd director
touch file1.txt file2.txt file3.txt
vi file1.txt
i
this one txt!!!
Esc
:wq 回车
cat -n file1.txt 回车
vi file2.txt
i
this tow txt!!!
Esc
:wq 回车
cat -n file2.txt 回车
vi file3.txt
i
this three txt!!!
Esc
:wq 回车
cat -n file3.txt 回车
本文详细介绍如何在Linux系统的/tmp目录下创建目录及文件,并使用vi编辑器进行文本输入及保存。通过具体步骤演示了从目录创建到文件编辑的全过程。

被折叠的 条评论
为什么被折叠?



