Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to decompress rar file in Linux

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to extract rar files in Linux", the content of the explanation is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to extract rar files in Linux" bar!

RAR is a patent file format, which is used for data compression and archiving. Its main advantage is that the file compression target can be divided into multiple files, and it is easy to extract the source files from such segmented compressed files.

1. download

Let's go to the rarlab website and download rar for linux x64

two。 Use the tar command to extract (* .tar with tar-xvf) ➜Downloads tar-xvf rarlinux-x64-5.6.0.tar.gz3. Enter the folder make (administrator privileges are required) ➜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%

If you do not make, you need to execute the command in the same folder as the command, or add the folder to the environment variable.

4. Finally, you can extract it using unrar and compress it using the rar command. ➜~ unrar x [file]

We can enter unrar directly to view help.

➜rar. / unrarUNRAR 5.60 freeware Copyright (c) 1993-2018 Alexander RoshalUsage: unrar-- 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], b] Verbosely list archive contents [technological [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

Other decompression commands:

1. * .tar decompression with tar-xvf 2, * .gz decompression with gzip-d or gunzip decompression 3, * .tar.gz and * .tgz decompression with tar-xzf 4, * .bz2 decompression with bzip2-d or bunzip2 decompression 5, * .tar.bz2 decompression with tar-xjf 6, * .Z decompression with uncompress 7, * .tar.Z decompression with tar-xZf 8, * .rar decompression with unrar e 9, *. Zip decompression with unzip thank you for reading These are the contents of "how to extract rar files in Linux". After the study of this article, I believe you have a deeper understanding of how to extract rar files in Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report