linux 系统tar文件压缩打包命令

实验环境:Centos7.* 64位,最小化安装版。长时间不解压缩,命令就会忘记,给本身留个记录,没事来看看。html

linux 系统tar文件压缩打包命令linux 系统tar文件压缩打包命令

打包成tar.gz格式压缩包linux

# tar -zcvf renwolesshel.tar.gz /renwolesshel

解压tar.gz格式压缩包less

# tar zxvf renwolesshel.tar.gz

打包成tar.bz2格式压缩包ssh

# tar -jcvf renwolesshel.tar.bz2 /renwolesshel

解压tar.bz2格式的压缩包3d

# tar jxvf renwolesshel.tar.bz2

压缩成zip格式htm

# zip -q -r renwolesshel.zip renwolesshel/

解压zip格式的压缩包blog

# unzip renwolesshel.zip

暂时先这些吧,后期遇到了再添加。ip

原文来自:https://www.linuxprobe.com/linux-tar.htmlget

相关文章
相关标签/搜索