找回密码
 快速注册
搜索
查看: 39|回复: 0

[Linux] 各种格式的解压命令

[复制链接]

3149

主题

8387

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65396
QQ

显示全部楼层

hbghlyj 发表于 2022-12-23 09:18 |阅读模式
本帖最后由 hbghlyj 于 2023-5-23 22:55 编辑

If you are not sure how to unpack the compressed file or its ending looks different:
  • *.tar.gz or *.tgz: Use tar xzf *.tar.gz

  • *.tar.bzip2 or *.tar.bz2: Use tar xjf *.tar.bzip2

  • *.app.dmg or *.dmg: This is a Mac disk image, and you can just double-click it.

  • *.tar.lzma: Use tar --lzma -xf *.tar.lzma

    • No lzma? Perhaps you have xz, that is compatible with lzma. There might also be -J in tar -xJf *.tar.lzma or you need to install an lzma or xz-utils package.

  • If the file ending is different, the Linux command file gives you information about the archive type. (Type file filename.ext at the command prompt.)

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 16:06

Powered by Discuz!

× 快速回复 返回顶部 返回列表