/// ///unzip the RAR and zip files (there is a need for Winrar.exe (as long as you can extract or compress files on your computer Winrar.exe))/// /// Save directory after extracting files /// The file to be extracted is stored in absolute path (
(Fi_d)ElseGlobal FileCountGlobal ZipdirFileCount = FileCount + 1# Print FileCountFileName = Os.path.join (filepath,fi_d)Filenamenoext = Getfilenameandext (FileName) [0]Fileext = Getfilenameandext (FileName) [1]# If you want to save to the same folder, set the file name to emptyFilenamenoext = ""Zipdirdest = Zipdir + "/" + Filenamenoext + "/"If fileext in ['. zip ', '. rar ']:If not Os.path.isdir (zipdirdest):Os.mkdir (Zipdirdest)if Fileext = = ". Zip
RAR command
Function descriptionRAR is a common compression format in Windows systems, and this type of compressed file is mainly exchanged with Windows systems instead of compressing or archiving files. Use the following:
rar [Options] ZIP file name
Common parameters
Options
Description
E
file content can be seen, actually useful only 4 filesThe rar and Unrar Two executables are moved to the/usr/local/bin directory, the rarfiles.lst configuration files are moved, and the default.sfx File to the appropriate directory.4, when we installed RAR, now to do is the RAR file compression and decompression. The
Linux decompression rar file (Unrar installation and use, sub-volume decompression)Windows platform A lot of compressed documents for RAR files, then how to do Linux decompression rar file (Unrar installation and use)?Simple, CENTOS5 installation Unrar can be. Unrar Installation methods are as follows:wget HTTP://DAG.W
How to decompress rar and zip files in Centos
Zip-r data.zip data
Explanation: The data folder is compressed into the data.zip format.
Unzip data.zip
Description: Decompress the data.zip file to the current folder.
Below are some detailed descriptions
1. I want to compress a file abc.txtand a directory dir1into yasuo.zip:
# Zip-r yasuo.zip abc.txt dir1
2. I dow
Linux also has corresponding methods to decompress the compressed files .zipand .rar in Windows:
1: Yu .zip
In Linux, zip and unzip are provided.Program, Zip is the compression program, unzip is the decompression program. They have many Parameter options. Here we will just give a brief introduction and give an exampl
Tags: add unzip specific missing subdirectory change LIS style useBecause, the Linux system built-in without this package needs, we use the source code, added to the systemInstallation of RAR Unrar under LinuxTake the 3.8.0 version For example, if it is a 64-bit platform, execute the following command, you can go to the official website:) Download the latest version:wget http://www.rarlab.com/
extracting build/static/media/iconfont.f8b575df.svg OK all ok[[emailprotected] test]# Ls-lto Tal 284drwxr-xr-x 4 root root 4096 June 4 10:06 build-rw-r--r--1 root root 283518 June 4 10:09 Build.rarNote: The use of RAR x command has been extracted, and the files are extracted to the build directory, this directory is the name of the RAR file to remove the suffix.
Linux uses rarlinux to operate files in rar format overview: RAR is a patented file format for data compression and archiving and packaging. developer Eugene middot; fig (EugeneRoshal ), so the full name of RAR is RoshalARchive. The first public version RAR1.3 was released on July 3, 1993. Back... linux uses rarlinux
RAR x Itbulu.com.rar
The red section represents the name of the file that we need to unzip to compress the package.
2, compressed files
The code is as follows
Copy Code
RAR a Itbulu.com.rar file
The
Com
Linux uses rarlinux to operate files in rar format Overview: RAR is a patented file format for data compression and archiving and packaging. developer Eugene Roshal (Eugene Roshal ), so the full name of RAR is: Roshal ARchive. The first public version, RAR 1.3, was released
Many people like Mac know that this OS does not like win on WinRAR or hao123 decompression and other similar software, for the compression and decompression of files is not convenient, after downloading RAR file package will be helpless, it is extremely embarrassing, in order to avoid this situation, self-help, clothed. Go to http://www.rarlab.com/download.htm this site to download the unpacking Kit RAROSX
Generally through the default installation of Ubuntu can not extract RAR files, only after the installation of RAR decompression tool, can be decompressed. In fact, the installation of RAR decompression tool under Ubuntu is very simple, only need two steps can be quickly done.Ubuntu
Linux platform is not supported by default RAR file decompression, need to install the Linux version of RAR compression software, for: http://www.rarlab.com/download.htmAfter the download, unzip, go to the RAR directory, run the make command to install:[Email protected] rar]
Article Title: compression and decompression of rar and zip files in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. zip
In Linux, an unzip program is provided to decompress the file. The decompression command is:
extracted filesN[Email protected] Read additional filter Masks from stdin[Email protected]o[+|-] 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 SubdirectoriesScSlsmtatbtnToTsU Update FilesV List all volumesVer[n] File version controlVP Pause before each volumex[Email protected] Read file names to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.