Forgot password?
 Register account
View 147|Reply 0

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

[Copy link]

3157

Threads

7925

Posts

610K

Credits

Credits
64218
QQ

Show all posts

hbghlyj Posted 2022-12-23 09:18 |Read mode
Last edited by hbghlyj 2023-5-23 22:55If 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.)

Mobile version|Discuz Math Forum

2025-6-6 14:51 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit