/// ///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
have a unzip program, so you can go here and grab it and install it. 3. Unzip successfully, again need to try to extract only a subset of files out Combined with the facial decomposition pressure file, tried several times to finally find a way: 1. Show All Files: Efbill_2:[
Directory1. Introduction to Commands2. Common parameter Introduction3. Example4. Direct access to the bottomIntroduction to CommandsZip is a widely used compression program under the Linux system, and the file is compressed with a ". zip" extension. The zip command is used to compress the file into a common zip format, and the unzip command is used to extract the zip file.Back to CatalogCommon parameters In
encoding. 1.3. Determination of the cataloguedirectory, which is also in the same sibling as the child file. Directly next. author :: Old Wow's claws Attilax Ayron, Email:[email protected]reprint Please indicate source: Http://blog.csdn.net/attilax2. RAR parsingHow do I extract or unzip a rar archive in Java ? Previously looked up a lot of information, did not f
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 h
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 decomp
Compression and decompression of rar and zip files in linux-Linux general technology-Linux technology and application information. For details, refer to the following section. 1. zip
Linx comes with an unzip program that can decompress the file. The decompression command is:
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
In fact, want to achieve this function is very simple, first of all to upload a RAR decompression program, is RAR own decompression program, only need its core
Program RAR.EXE this file is OK. Then you will upload a program that
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
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.