One magic word to unpack archive.一个命令解压所有压缩文件
Support
rar
,zip
,tar.gz
,gz
,Z
,tar.Z
,bz2
,tar.bz2
,bz
,tar.bz
archives for now.目前支持
rar
,zip
,tar.gz
,gz
,Z
,tar.Z
,bz2
,tar.bz2
,bz
,tar.bz
后缀的压缩文件。
-
Download release file at release page
-
Then move the release file into
/usr/local/bin/
, now you can use in the command line asextrac
-
also i suggest you to set a alias, my real wish is a world
x
could unpack all archives, i'm working on it. so the alias could be likealias x="extrac"
, append it in your~/.bashrc
or~/.zshrc
for one user, also you can apped it into/etc/profile
, for all user. Then runsource ~/.bashrc
,source ~/.zshrc
for one user, orsource /etc/profile
for all users.
if you got python on your device, you can use pip3 install extrac
to install this tool, and use it in command line directly by x FILE
-
在下载页面下载release文件extrac
-
将文件移动到
/usr/local/bin
目录下,现在你可以用extrac
命令来解压文件。 -
你也可以设置一个别名,将来的python包版本,会直接设定为别名
x
,可以在~/.bashrc
或~/.zshrc
里面追加一句alias x="extrac"
对单个用户生效,或者追加到/etc/profile
对所有用户生效,运行source ~/.bashrc
、source ~/.zshrc
或source /etc/profile
来立即生效。
如果你设备上有python,可以直接通过pip3 install extrac
来安装这个工具,然后在命令行使用x FILE
命令来解压文件。