centos压缩和解压缩

压缩

tar -zcvf 打包后生成的文件名全路径 要打包的目录

tar -zcvf /home1/usr/log.tar.gz ./log

解压缩

tar zxvf back.tar.gz

 

posted @ 2018-08-01 09:56  星空42  阅读(131)  评论(0编辑  收藏  举报