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:
Unzip filename.zip
A zip program is
extension:# Rpm2cpio file. RPM | cpio-Div12. Install files with the. Deb extension:# Dpkg-I file. Deb13. decompress the file with the. Deb extension:# Dpkg-Deb-fsys-tarfile file. Deb | tar xvf-ar PFile. Deb data.tar.gz | tar xvzf-14.files with the extension of .zip:# Unzip file.zipDecompress WinZip files in LinuxIf JD
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:[Plain]View PlainCopy
[[email protected]
ZhangchangchangIn order to obtain a compressed package of files, and the package may contain compressed packets, folders, folders containing compressed packets, files and other nested cases, the use of breadth-first traversal and depth-first traversal method to solve the problem.public static list{String destpath = zippath.substring (0,zippath.lastindexof (".")) + "/";U
:# Rpm2cpio file. RPM | cpio-Div12. Install files with the. Deb extension:# Dpkg-I file. Deb13. decompress the file with the. Deb extension:# Dpkg-Deb-fsys-tarfile file. Deb | tar xvf-ar PFile. Deb data.tar.gz | tar xvzf-14.files with the extension of .zip:# Unzip file.zipDecompress WinZip files in LinuxIf JDK is insta
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 executes RAR.EXE CMD. EXE This is a program in Windows (don't need me to say it). Finally, we started to implement these procedures. Take a look at the following code
Dim Ylj,ywj,
Split splitting large filesSystem defaults to self-containing# split-b 2048m AA Aa_-B N[BKM] B. Behalf of 512B,K representative 1kb,m representative of 1MThe following AA indicates the specified file prefixThe result: Aa_aa Aa_abMerge split files:# cat Aa_aa aa_ab > AARAR Splitting large files# apt-get Install rar# rar
Are you still bothered by the decompression wait? Are you still struggling with the growing use of memory? Then come to know Winmount, it will lift your troubles, will bring you surprises, until you fall in love with it! Let rar, zip compressed files, the same can be mounted!
Winmount can not only quickly open the compressed file, but also the image file virtual into the optical drive. It loads these
Today encountered in the Linux server to extract a few RAR files problem, RAR seems to be win exclusive compression format, so the Linux native tool chain does not support RAR decompression tools. After a series of search to determine a foot linuxrar software, but this software is not
TAR-XVF rarlinux-3.9.3.tar.gzCD rarMakeSee the following message that the installation was successful.Mkdir-p/usr/local/binMkdir-p/usr/local/libCP rar Unrar/usr/local/binCP Rarfiles.lst/etcCP Default.sfx/usr/local/libThe following issue occurs when you run the command rarRAR:/lib/i686/nosegneg/libc.so.6:version ' glibc_2.7 ' not found (required by RAR)Workaround:CP Rar_static/usr/local/bin/rarRAR x Vpsyou.r
Method of extracting RAR and zip files in Ubuntu system
In the previous Windows system, there will be many RAR and zip format of compressed files, Ubuntu system by default, these files are not very good support, if you open the "Archive Manager" will prompt errors, So tod
list all the files in the All.tar package,-T is to list the meaning of the fileThis command is to solve all the files in the All.tar package,-X is the meaningCompressiontar –cvf jpg.tar *.jpg //将目录里所有jpg文件打包成tar.jpgtar –czf jpg.tar.gz *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用gzip压缩,生成一个gzip压缩过的包,命名为jpg.tar.gztar –cjf jpg.tar.bz2 *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用bzip2压缩,生成一个bzip2压缩过的包,命名为jpg.tar.bz2tar –cZf j
———————————————. rarDecompression: rar a Filename.rarCompression: RAR e Filename.rar———————————————. LhaDecompression: Lha-e Filename.lhaCompression: Lha-a Filename.lha FileNameZipZip is probably the most used document compression format. Its biggest advantage is the use of different operating system platforms, such as Linux, Windows, and MacOS. The downside is that the compression ratios are not very high,
For file compression and decompression in the. tar format it is common to use the same command today for files in. zip format. I was really stupid enough to ignore the suffix format ...1. For tar format filescompression: TAR–ZCVF compressed after the name of the compressed directory//TAR-ZCVF A.tar aDecompression: TAR–ZXVF the name after compression//TAR-ZXVF A.tar2. For zip format Filescompression: Zip filename.zip filesdecompression:
---------------------------------------------Tar command:-V Visualization-C New Package-F Specify the file name (unless you use the default user name)-X Decompression Target.tar-R Add File to Target.tar-t lists files in Target.tar-U update file files in Target.tar-Z Call gzip-j Call bzip2Compression TAR:TAR-CF [Target.tar] [file]Decompression TAR:TAR-XF [Target.tar]Compression TAR.GZ:TAR-CZF [target.tar.gz]
If your computer has very limited hard disk space, this article should be useful for you. In this article, we'll discuss how to enable file compression for files or folders. and zip file compression or RAR file compression, in this way, you do not have to create an archive file, compressed files will be as accessible as before compression.Before you begin, you ne
file is available for direct operation and, of course, also helpful./file.bin--help Sometimes you can view help information;chmod a+x file.bin Set executable permissions, and then double-click or./file.bin if it is not in the current directory, specify an absolute path;RPM Software Package Installation:RPM-IVH software name. RPM (This is used to install a new RPM package)RPM-UVH software name. RPM (This is used to upgrade an RPM package, that is, the system already has the old version of this s
From: http://blog.csdn.net/mmllkkjj/article/details/6768294/ExtractTAR–XVF File.tar//Unpacking the TAR PackageTAR-XZVF file.tar.gz//Decompression tar.gzTAR-XJVF file.tar.bz2//Decompression tar.bz2TAR–XZVF file.tar.z//Unzip tar. ZUnrar e file.rar//decompression rarUnzip File.zip//Unzip zipSummarize1, *.tar with TAR–XVF decompression2, *.gz with gzip-d or gunzip decompression3, *.tar.gz and *.tgz with TAR–XZF
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.