文章目录
安装查看使用方法示例:解压`HEOP-V2.3.0-211230开发指南.rar`压缩包到当前目录下的`./HEOP/`示例:解压到当前目录安装
sudo apt install unrar
查看使用方法
注:archived paths 存档路径
unrar
[root@ubuntu /home/yg/H7 HEOP]6# unrarUNRAR 5.30 beta 2 freewareCopyright (c) 1993- Alexander RoshalUsage: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 stdoutt Test archive filesv[t[a],b]Verbosely list archive contents [technical[all],bare]x Extract files with full path(解压指定路径下的文件)<Switches>- Stop switches scanning@[+]Disable [enable] file listsad Append archive name to destination pathag[format] Generate archive name using the current dateai Ignore file attributesap<path>Set path inside archivec- Disable comments showcfg-Disable read configurationcl Convert names to lower casecu Convert names to upper casedh Open shared filesep Exclude paths from namesep3 Expand paths to full including the drive letterf Freshen filesid[c,d,p,q] Disable messagesierrSend all messages to stderrinulDisable all messageskb Keep broken extracted filesn<file> Additionally filter included filesn@ Read additional filter masks from stdinn@<list>Read additional filter masks from list fileo[+|-] Set the overwrite modeol[a] Process symbolic links as the link [absolute paths]or Rename files automaticallyow Save or restore file owner and groupp[password] Set passwordp- Do not query passwordr Recurse subdirectoriessc<chr>[obj] Specify the character setsl<size>Process files with size less than specifiedsm<size>Process files with size more than specifiedta<date>Process files modified after <date> in YYYYMMDDHHMMSS formattb<date>Process files modified before <date> in YYYYMMDDHHMMSS formattn<time>Process files newer than <time>to<time>Process files older than <time>ts<m,c,a>[N] Save or restore file time (modification, creation, access)u Update filesv List all volumesver[n] File version controlvp Pause before each volumex<file> Exclude specified filex@ Read file names to exclude from stdinx@<list>Exclude files listed in specified list filey Assume Yes on all queries[root@ubuntu /home/yg/H7 HEOP]7#
示例:解压HEOP-V2.3.0-211230开发指南.rar
压缩包到当前目录下的./HEOP/
unrar x HEOP-V2.3.0-211230开发指南.rar ./HEOP/
示例:解压到当前目录
unrar e xxx.rar
参考文章:Ubuntu下unrar指令的简单使用