Forgot password?
 Create new account
View 101|Reply 0

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

[Copy link]

3147

Threads

8493

Posts

610K

Credits

Credits
66163
QQ

Show all posts

hbghlyj Posted at 2022-12-23 09:18:12 |Read mode
Last edited by hbghlyj at 2023-5-23 22:55:00If 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|Leisure Math Forum

2025-4-20 22:23 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list