在/tmp目录下,新建目录director新建三个txt文件,分别命名为filel、file2、file3,用vi编辑器分别在三个文件中输入内容。
cd /tmp
mkdir director
cd director
touch file1.txt file2.txt file3.txt
vi file1.txti
this one txt!!!
Esc:wq 回车
cat -n file1.txt 回车
vi file2.txtithis tow txt!!!Esc:wq
回车cat -n file2.txt 回车
vi file3.txtithis three txt!!!
Esc:wq 回车
cat -n file3.txt 回车