压缩备份命令的使用

一、压缩备份命令的使用

1)打包

[root@localhost ~]# tar cf aa.tar aa

2)压缩打包

[root@localhost ~]# tar zcvf aa.tar.gz aa

3)解压

[root@localhost ~]# tar zxvf aa.tar.gz -c /root

二、输出重定向

cd /root

ls

ls >> test.txt

ls

原文地址:https://www.cnblogs.com/daipianpian/p/4495489.html