xz 解压缩命令,老是忘记

.tar.xz的解压命令
$ xz -d ***.tar.xz
$ tar -xvf ***.tar
 
 
或者
$ tar xvJf ***.tar.xz

 

复制代码
tar -zxvf a.tar.gz
tar -zxvf a.tgz
tar -zxvf a.gz
tar -Jxvf a.tar.xz
tar -jxvf a.bz2

bunzip2 linux-2-4-2.tar.bz2 生成 linux-2-4-2.tar 
tar xvf linux-2-4-2.tar

1、*.tartar –xvf 解压
2、*.gz 用 gzip -d或者gunzip 解压
3、*.tar.gz和*.tgz 用 tar –xzf 解压
4、*.bz2 用 bzip2 -d或者用bunzip2 解压
5、*.tar.bz2用tar –xjf 解压
6、*.Z 用 uncompress 解压
7、*.tar.Z 用tar –xZf 解压
8、*.rar 用 unrar e解压
9、*.zipunzip 解压
复制代码
复制代码
tar

  -j, --bzip2                filter the archive through bzip2
  -J, --xz                   filter the archive through xz
      --lzip                 filter the archive through lzip
      --lzma                 filter the archive through lzma
      --lzop
      --no-auto-compress     do not use archive suffix to determine the
                             compression program
  -z, --gzip, --gunzip, --ungzip   filter the archive through gzip
  -Z, --compress, --uncompress   filter the archive through compress

  -v, --verbose              verbosely list files processed

  -x, --extract, --get       extract files from an archive

  -A, --catenate, --concatenate   append tar files to an archive
  -c, --create               create a new archive
复制代码

https://www.cnblogs.com/Sabre/p/10365395.html

 

posted @   multitude  阅读(1729)  评论(0编辑  收藏  举报
编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· 使用C#创建一个MCP客户端
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示