1、在/tmp目录下,新建目录director新建三个txt文件,分别命名为file1,file2,file3,
用vi编辑器分别在三个文件中输入内容。
vi编辑器使用方法:
vi 文件名————i (进入编辑模式)————内容编辑————编辑完成后,
按ESC————:wq保存退出,强制后面加!
2、将file1/file2/file3三个文件中内容合并到一个文件中命名为filetest.txt
3、在director目录下新建一个open目录,并在open目录下创建openfile目录,
所有目录权限为r-xr--r--。
4、将filetest.txt文件备份到、root下,并将/tmp/director目录移动到/usr中。
5、将open目录及其子目录和文件删除。