1.创建目录test
使用两种方式在test目录中创建文本文件text1.txt, text2.txt
使用Vim在文件text1.txt中写入
Welcome to my Linux.
You are the best.
This is my first file to create on linux
设置行号,并将文本中my替换成your,将文件另存为new_test1.txt
[root@rhcsa test]# vim text1.txt
[root@rhcsa test]# vim text1.txt
[root@rhcsa test]# cat new_text.txt
Welcome to your Linux.
You are the best.
This is your first file to create on linux
将test1中的文件考本到test2目录
将test2目录中的test1.txt重命名为test111.txt
在test2目录中新建test111.txt的软链接文件 test111_symb.txt
在test2目录中新建test111.txt的硬链接文件 test111_hard.txt
删除test目录中test1.txt
删除test目录
[root@rhcsa ~]# cp -r test test2
[root@rhcsa ~]# ls test2
input.txt new_test1.txt redirect.txt test1 test.txt
link new_text.txt test test2 text1.txt
[root@rhcsa test2]# cp