Linux之rar文件解压之路
来源:Linux就该这么学
2024-12-02 15:58:02
0浏览
收藏
目前golang学习网上已经有很多关于文章的文章了,自己在初次阅读这些文章中,也见识到了很多学习思路;那么本文《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 需要在命令所在的文件夹执行命令,或者把文件夹加入环境变量中。
4. 最后,可以使用 unrar 进行解压, 使用 rar 命令,进行压缩。
➜ ~ unrar x [file]
我们 可以直接输入 unrar 查看帮助
➜ rar ./unrar UNRAR 5.60 freeware Copyright (c) 1993-2018 Alexander Roshal Usage: unrar <command></command> - - < @listfiles...> 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 - 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 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 Additionally filter included files n@ Read additional filter masks from stdin n@ 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[obj] Specify the character set sl Process files with size less than specified sm Process files with size more than specified ta Process files modified after in YYYYMMDDHHMMSS format tb Process files modified before in YYYYMMDDHHMMSS format tn<time> Process files newer than </time><time> to</time><time> Process files older than </time><time> ts[m|c|a] Save or restore file time (modification, creation, access) u Update files v List all volumes ver[n] File version control vp Pause before each volume x Exclude specified file x@ Read file names to exclude from stdin x@ Exclude files listed in specified list file y Assume Yes on all queries </time>
其他解压缩命令:
1、*.tar 用 tar –xvf 解压 2、*.gz 用 gzip -d或者gunzip 解压 3、*.tar.gz和*.tgz 用 tar –xzf 解压 4、*.bz2 用 bzip2 -d或者用bunzip2 解压 5、*.tar.bz2用tar –xjf 解压 6、*.Z 用 uncompress 解压 7、*.tar.Z 用tar –xZf 解压 8、*.rar 用 unrar e解压 9、*.zip 用 unzip 解压
本篇关于《Linux之rar文件解压之路》的介绍就到此结束啦,但是学无止境,想要了解学习更多关于文章的相关知识,请关注golang学习网公众号!
版本声明
本文转载于:Linux就该这么学 如有侵犯,请联系study_golang@163.com删除

- 上一篇
- 电脑故障解决大全2022 | 电脑维修故障及解决方法汇总

- 下一篇
- 匠人网校电脑版怎么下载?
查看更多
最新文章
-
- 文章 · linux | 10分钟前 | Linux Linux命令
- LinuxLHA工具使用教程与命令实例
- 234浏览 收藏
-
- 文章 · linux | 20分钟前 |
- MongoDBLinux备份方法全解析
- 419浏览 收藏
-
- 文章 · linux | 23分钟前 | Linux Linux命令
- Linux退出终端命令exit使用方法
- 331浏览 收藏
-
- 文章 · linux | 42分钟前 |
- iftop与nload哪个更实用?
- 411浏览 收藏
-
- 文章 · linux | 1小时前 | Linux Linux命令
- Linux下uudecode解码uuencode文件方法
- 350浏览 收藏
-
- 文章 · linux | 1小时前 |
- mount命令日志查看技巧
- 168浏览 收藏
-
- 文章 · linux | 1小时前 | Linux Linux命令
- Linux下解压zip用unzip命令详解
- 174浏览 收藏
-
- 文章 · linux | 1小时前 |
- Linux下Golang日志监控技巧分享
- 259浏览 收藏
-
- 文章 · linux | 1小时前 |
- 如何查看Linux僵尸进程及处理方法
- 409浏览 收藏
-
- 文章 · linux | 1小时前 | Linux Linux命令
- Linux域名查询工具:whois命令使用教程
- 427浏览 收藏
-
- 文章 · linux | 1小时前 | Linux Linux命令
- Linuxparted分区工具使用详解
- 463浏览 收藏
-
- 文章 · linux | 1小时前 |
- Linux网络故障解决全攻略
- 262浏览 收藏
查看更多
课程推荐
-
- 前端进阶之JavaScript设计模式
- 设计模式是开发人员在软件开发过程中面临一般问题时的解决方案,代表了最佳的实践。本课程的主打内容包括JS常见设计模式以及具体应用场景,打造一站式知识长龙服务,适合有JS基础的同学学习。
- 542次学习
-
- GO语言核心编程课程
- 本课程采用真实案例,全面具体可落地,从理论到实践,一步一步将GO核心编程技术、编程思想、底层实现融会贯通,使学习者贴近时代脉搏,做IT互联网时代的弄潮儿。
- 508次学习
-
- 简单聊聊mysql8与网络通信
- 如有问题加微信:Le-studyg;在课程中,我们将首先介绍MySQL8的新特性,包括性能优化、安全增强、新数据类型等,帮助学生快速熟悉MySQL8的最新功能。接着,我们将深入解析MySQL的网络通信机制,包括协议、连接管理、数据传输等,让
- 497次学习
-
- JavaScript正则表达式基础与实战
- 在任何一门编程语言中,正则表达式,都是一项重要的知识,它提供了高效的字符串匹配与捕获机制,可以极大的简化程序设计。
- 487次学习
-
- 从零制作响应式网站—Grid布局
- 本系列教程将展示从零制作一个假想的网络科技公司官网,分为导航,轮播,关于我们,成功案例,服务流程,团队介绍,数据部分,公司动态,底部信息等内容区块。网站整体采用CSSGrid布局,支持响应式,有流畅过渡和展现动画。
- 484次学习
查看更多
AI推荐
-
- 茅茅虫AIGC检测
- 茅茅虫AIGC检测,湖南茅茅虫科技有限公司倾力打造,运用NLP技术精准识别AI生成文本,提供论文、专著等学术文本的AIGC检测服务。支持多种格式,生成可视化报告,保障您的学术诚信和内容质量。
- 153次使用
-
- 赛林匹克平台(Challympics)
- 探索赛林匹克平台Challympics,一个聚焦人工智能、算力算法、量子计算等前沿技术的赛事聚合平台。连接产学研用,助力科技创新与产业升级。
- 182次使用
-
- 笔格AIPPT
- SEO 笔格AIPPT是135编辑器推出的AI智能PPT制作平台,依托DeepSeek大模型,实现智能大纲生成、一键PPT生成、AI文字优化、图像生成等功能。免费试用,提升PPT制作效率,适用于商务演示、教育培训等多种场景。
- 170次使用
-
- 稿定PPT
- 告别PPT制作难题!稿定PPT提供海量模板、AI智能生成、在线协作,助您轻松制作专业演示文稿。职场办公、教育学习、企业服务全覆盖,降本增效,释放创意!
- 157次使用
-
- Suno苏诺中文版
- 探索Suno苏诺中文版,一款颠覆传统音乐创作的AI平台。无需专业技能,轻松创作个性化音乐。智能词曲生成、风格迁移、海量音效,释放您的音乐灵感!
- 189次使用
查看更多
相关文章
-
- 命令行工具:应对Linux服务器安全挑战的利器
- 2023-10-04 501浏览
-
- 如何使用Docker进行容器的水平伸缩和负载均衡
- 2023-11-07 501浏览
-
- linux .profile的作用是什么
- 2024-04-07 501浏览
-
- 如何解决s权限位引发postfix及crontab异常
- 2024-11-21 501浏览
-
- 如何通过脚本自动化Linux上的K8S安装
- 2025-02-17 501浏览