linux 下常用解压命令

来源:互联网 发布:淘宝如何加入消保 编辑:程序博客网 时间:2024/06/05 04:36

tar
格式: tar [选项] [文件目录列表]

选项:

-A   append tar files to an archive

-c    create a new archive
-r    append files to the end of an archive

-x   extract files from an archive  调用gzip来压缩归档文件,与-x联用时调用gzip完成解压缩

-j    filter the archive through bzip2

-z   filter the archive through gzip
-O  将文件解开到标准输出
-v  处理过程中输出相关信息
-f   use archive file or device ARCHIVE
-Z  调用compress来压缩归档文件,与-x联用时调用compress完成解压缩

 

常见格式:

解压tar.bz2

tar jxvf xxxxx.tar.bz2

解压tar.gz

tar zxvf xxxxx.tar.gz

原创粉丝点击