游戏迷提供最新游戏下载和手游攻略!

Linux环境下RAR文件解压指南

发布时间:2024-10-19浏览:38

老铁们,大家好,相信还有很多朋友对于Linux环境下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/localinstall: 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 RoshalUsage: unrar - - < @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 Process files newer than to Process files older than 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

其他解压缩命令:

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 解压

用户评论

羁绊你

我一直在Windows下使用RAR解压缩,但总听周围的朋友讨论在Linux环境中处理这种文件,我也想尝试一下。

    有13位网友表示赞同!

陌颜

作为Linux用户,我发现将RAR格式文件解压变得异常方便,让我对系统功能的利用率有全新认识。

    有9位网友表示赞同!

予之欢颜

通过命令行实现RAR文件的解压,既快捷又高效,感觉直接融入了Linux的世界。

    有7位网友表示赞同!

安陌醉生

虽然开始时有点挫折感,但在学习过基本的Linux命令后,处理RAR文件变得更加简单且有趣。

    有8位网友表示赞同!

桃洛憬

在Linux的生态系统中,RAR解压缩功能为我的文档管理和组织提供了更多的可能。

    有20位网友表示赞同!

青楼买醉

尽管是初接触者,我找到了很多相关的教程和指南来指导我在Linux下运行所需命令。

    有14位网友表示赞同!

孤单*无名指

RAR解压过程中的每一个步骤都让我对Linux的操作系统有了更深的理解和欣赏。

    有7位网友表示赞同!

枫无痕

现在我对Linux下的RAR文件解压缩操作充满信心,感觉技能点提高了好几个。

    有19位网友表示赞同!

嘲笑!

在Linux上操作虽然开始有些生疏,但很快就习惯了使用终端来管理我的RAR文档。

    有5位网友表示赞同!

又落空

尽管之前对Linux并不精通,但是尝试后的收获让我决定长期留在这个生态环境中发展。

    有18位网友表示赞同!

红尘烟雨

Linux的rar文件处理非常强大且灵活,我发现我可以更好地集成在我的日常工作中。

    有10位网友表示赞同!

蔚蓝的天空〃没有我的翅膀

在这个旅程中,我学会了如何使用不同的命令和工具来达到解压缩RAR文件的目标。

    有5位网友表示赞同!

回忆未来

对我来说,Linux中的rar文件操作就像打开了一个新世界的大门,让我有更多的探索机会。

    有9位网友表示赞同!

顶个蘑菇闯天下i

尽管过程中有挑战性,但是成功后的满足感让这一切都变得值得。

    有6位网友表示赞同!

十言i

在尝试Linux下的rar文件处理功能后,我感觉自己的技术能力有了显著的增长。

    有12位网友表示赞同!

走过海棠暮

RAR解压不仅展示了Linux的强大,同时也提高了我的命令行操作技能。

    有6位网友表示赞同!

烬陌袅

虽然开始学习有点困难,但通过实践我发现自己对Linux的操作逻辑有更深刻的领悟。

    有18位网友表示赞同!

浮光浅夏ζ

这个过程不仅让我学会了如何在Linux中解压RAR文件,也教会了我耐心和解决问题的方法。

    有18位网友表示赞同!

孤者何惧

RAR文件在Linux世界的强大应用,让我的文档管理效率得到了提升,并且使用体验十分流畅。

    有11位网友表示赞同!

热点资讯