没有合适的资源?快使用搜索试试~ 我知道了~
首页Linux 下解压 rar 文件的方法
Linux 下解压 rar 文件的方法
3.1k 浏览量
更新于2023-05-30
评论
收藏 44KB PDF 举报
网上下载rar 压缩文件的使用,在linux在我们需要对其进行解压缩,这个时候,我们需要安装 rar相关的文件,来进行解压缩。 1. 下载 我们进入rarlab网站,进行下载 rar for linux x64 2. 使用 tar 命令 解压 (*.tar 用 tar –xvf ) Downloads tar -xvf rarlinux-x64-5.6.0.tar.gz 3. 进入文件夹make (需要 管理员权限) rar cat makefile ################################################################### #
资源详情
资源评论
资源推荐

Linux 下解压下解压 rar 文件的方法文件的方法
网上下载rar 压缩文件的使用,在linux在我们需要对其进行解压缩,这个时候,我们需要安装 rar相关的文件,来进行解压
缩。
1. 下载下载
我们进入rarlab网站,进行下载 rar for linux x64
2. 使用使用 tar 命令命令 解压解压 ((*.tar 用用 tar –xvf ))
Downloads tar -xvf rarlinux-x64-5.6.0.tar.gz
3. 进入文件夹进入文件夹make (需要需要 管理员权限管理员权限)
rar cat makefile
###################################################################
# Installing RAR executables, configuration files and SFX modules #
# to appropriate directories #
###################################################################
PREFIX=/usr/local
install:
mkdir -p $(PREFIX)/bin
mkdir -p $(PREFIX)/lib
cp rar unrar $(PREFIX)/bin
cp rarfiles.lst /etc
cp default.sfx $(PREFIX)/lib%
如果不进行make 需要在命令所在的文件夹执行命令,或者把文件夹加入环境变量中。
3. 最后,可以使用最后,可以使用 unrar 进行解压,进行解压, 使用使用 rar 命令,进行压缩命令,进行压缩。
~ unrar x [file]
我们 可以直接输入 unrar 查看帮助
rar ./unrar
UNRAR 5.60 freeware Copyright (c) 1993-2018 Alexander Roshal
Usage: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>
<Commands>
e Extract files without archived paths
l[t[a],b] List archive contents [technical[all], bare] p Print file to stdout
t Test archive files
v[t[a],b] Verbosely list archive contents [technical[all],bare] x Extract files with full path
<Switches>
- Stop switches scanning
@[+] Disable [enable] file lists
ad Append archive name to destination path
ag[format] Generate archive name using the current date
ai Ignore file attributes
ap<path> Set path inside archive
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
dh Open shared files
ep Exclude paths from names
ep3 Expand paths to full including the drive letter
f Freshen files
id[c,d,p,q] Disable messages
ierr Send all messages to stderr
inul Disable all messages
kb Keep broken extracted files
n<file> Additionally filter included files
n@ Read additional filter masks from stdin
n@<list> Read additional filter masks from list file
o[+|-] Set the overwrite mode
ol[a] Process symbolic links as the link [absolute paths] or Rename files automatically
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
sc<chr>[obj] Specify the character set


















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0