前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >解压神器之UNAR

解压神器之UNAR

作者头像
Qicloud-W
发布2023-11-26 13:16:23
2040
发布2023-11-26 13:16:23
举报
文章被收录于专栏:七云's Blog七云's Blog
序言

在mac上解压exe压缩包遇到点困难,突然想起这款解压神器,brew 查了下确实有这个安装包,而且还有桌面版,由于习惯问题,还是只装了GUI版本,使用这些年下来,这款解压软件能评价的只能是竖起大拇哥,顶!很顶!

安装及使用

对于经常使用Linux的人群应该更依赖于GUI终端,所以我并没有安装桌面版

怎么安装brew这里不做赘述,网上教程也很多,yum apt 等基本都可以直接安装

代码语言:javascript
复制
## 使用brew安装unar
brew install unar

## yum.... 不做一一列举
yum install unar -y

解压乱码 -e指定编码即可 非常好用

代码语言:javascript
复制
## 预览压缩包
lsar 自解压6.exe
image.png
image.png
unar常用选项解释

-o

解释:指定解压结果保存的位置 unar document.zip -o /Volumes/bak

-e

解释:指定编码 unar -e GBK 自解压6.exe

-p

解释:指定解压密码 unar -p 123456 自解压6.exe

代码语言:javascript
复制
unar v1.10.7 (Oct 10 2023), a tool for extracting the contents of archive files.
Usage: unar [options] archive [files ...]

Available options:
-output-directory (-o) <string>         The directory to write the contents of the archive to. Defaults to the current directory. If set to a
                                        single dash (-), no files will be created, and all data will be output to stdout.
-force-overwrite (-f)                   Always overwrite files when a file to be unpacked already exists on disk. By default, the program asks the
                                        user if possible, otherwise skips the file.
-force-rename (-r)                      Always rename files when a file to be unpacked already exists on disk.
-force-skip (-s)                        Always skip files when a file to be unpacked already exists on disk.
-force-directory (-d)                   Always create a containing directory for the contents of the unpacked archive. By default, a directory is
                                        created if there is more than one top-level file or folder.
-no-directory (-D)                      Never create a containing directory for the contents of the unpacked archive.
-password (-p) <string>                 The password to use for decrypting protected archives.
-encoding (-e) <encoding name>          The encoding to use for filenames in the archive, when it is not known. If not specified, the program
                                        attempts to auto-detect the encoding used. Use "help" or "list" as the argument to give a listing of all
                                        supported encodings.
-password-encoding (-E) <name>          The encoding to use for the password for the archive, when it is not known. If not specified, then either
                                        the encoding given by the -encoding option or the auto-detected encoding is used.
-indexes (-i)                           Instead of specifying the files to unpack as filenames or wildcard patterns, specify them as indexes, as
                                        output by lsar.
-no-recursion (-nr)                     Do not attempt to extract archives contained in other archives. For instance, when unpacking a .tar.gz
                                        file, only unpack the .gz file and not its contents.
-copy-time (-t)                         Copy the file modification time from the archive file to the containing directory, if one is created.
-no-quarantine (-nq)                    Do not copy Finder quarantine metadata from the archive to the extracted files.
-forks (-k) <fork|visible|hidden|skip>  How to handle Mac OS resource forks. "fork" creates regular resource forks, "visible" creates AppleDouble
                                        files with the extension ".rsrc", "hidden" creates AppleDouble files with the prefix "._", and "skip"
                                        discards all resource forks. Defaults to "fork".
-quiet (-q)                             Run in quiet mode.
-version (-v)                           Print version and exit.
-help (-h)                              Display this information.
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 序言
  • 安装及使用
  • unar常用选项解释
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档