1、在/tmp目录下,新建目录director新建三个txt文件,分别命名为file1、file2、file3,
用vi编辑器分别在三个文件中输入内容。
新建目录命令:mkdir 新建文件命令:touch newfile 编辑文件内容:vi编辑器
2、将file1/file2/file3三个文件中内容合并到一个文件中命名为filetest.txt
合并文件命令也可查看文件内容:cat 【选项】文件名
3、在director目录下新建一个open目录,并在open目录下创建openfile,所有目录权限r-xr-r--。
4,将filetest.txt 文件备份到/root下,并将/tmp/director目录移动到/usr中。
5,将open目录及其子目录和文件删除。