In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about how to extract rar files in Linux, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
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.gz
3. Enter the folder make (administrator permission is 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.
3. 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. / unrar UNRAR 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 [a], b] Verbosely list archive contents [technology [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 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 is decompressed with tar-xvf
2. *. Gz is decompressed with gzip-d or gunzip
3. * .tar.gz and * .tgz are decompressed with tar-xzf
4. * .bz2 decompress with bzip2-d or bunzip2
5. * .tar.bz2 decompress with tar-xjf
6. * .Z decompress with uncompress
7. Tar.Z is decompressed with tar-xZf
8. *. Rar decompressed with unrar e
9. *. Zip decompressed with unzip
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
The above is how to extract the rar file in Linux. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.