One linux Command one day -- decompress the tgz file -- general Linux technology-Linux technology and application information. The following is a detailed description. Tgzis the same as tar.gz
Tar zxvf XX.tar.gz
For example, the contents of the usr.tar backup file are displayed on the display in split screen mode
Ubuntu10.10, cannot decompress the file at the end of tgz. How can this problem be solved? I installed this gzip file. Tar is also installed. File-roller I have installed. So how can I download this tgz
all.tar.bz2
# Tar-xjf all.tar.bz2This command unlocks the generated package.3) tar call Compress
Compress is also a compression program, but it seems that people who use compress are not as good as those who use gzip and Bzip2.More .. The file ending with Z is the result of Bzip2 compression. The decompress program relative to compress is uncompress.. Use the-Z parameter in tar to call compress. The follow
package and use Bzip2 to generateBzip2compressed package named all.tar.bz2
# Tar-xjf all.tar.bz2This command unlocks the generated package.3) tar call Compress
Compress is also a compression program, but it seems that people who use compress are not as good as those who use gzip and Bzip2.More .. The file ending with Z is the result of Bzip2 compression. The decompress program relative to compress is uncom
program, but it seems that there are not as many people using compress as gzip and Bzip2 .. The file ending with Z is the result of Bzip2 compression. The decompress program relative to compress is uncompress. Use the-Z parameter in tar to call compress. The following is an example:
# Tar-CZF all.tar. z *. jpg
Forbidden. Z
# Tar-xzf all.tar. Z
This command is used to unbind the generated package. You shoul
command is to make all. jpg files into a package named All.tar. -C is to indicate the creation of a new package,-f Specifies the file name of the package.
The code is as follows
Copy Code
# TAR-RF All.tar *.gif
This command adds all the. gif files to the All.tar package. -R is the file that adds theMean.
The code is as follows
Copy Code
#
Extract the tgz file to the specified directory tar is commonly used on Linux packaging, compression, compression tools, he has a lot of parameters, folding only to enumerate the commonly used compression and decompression parameter parameters:-c:create to establish the parameters of compressed archives;-X: Extract the parameters of the compressed archive;-Z: Need to use gzip compression;-V: The
This article describes how to compress and decompress the zip file in Python and try to crack the password of the zip file. It provides a simple example of using the zipfile module, for more information about how to compress and decompress zip files, see python zipfile.
For example, in the directory where The py scrip
sourceFile = new File (sourceFileName );Byte [] buf = new byte [1, 1024];
// Compress the file nameFile objFile = new File (zipFilename );ZipOutputStream zos = new ZipOutputStream (new FileOutputStream (objFile ));ZipEntry ze = null;// Create a ZipEntry and set the Name and other attributesZe = new ZipEntry (sourceFile. getName ());Ze. setSize (sourceFile. lengt
Php decompress the file code to decompress php online
This article mainly introduces the php decompression file code. You can use this code to decompress php files online. For more information, see
The Code is as follows:
$ Zip = zip_open ("moooredale.zip ");
If ($ zi
This article mainly introduces the php decompression file code. you can use this code to decompress php files online. For more information, see
The code is as follows:
$ Zip = zip_open ("moooredale.zip ");If ($ zip ){While ($ zip_entry = zip_read ($ zip )){$ Fp = fopen (zip_entry_name ($ zip_entry), "w ");If (zip_entry_open ($ zip, $ zip_entry, "r ")){$ Buf = zip_entry_read ($ zip_entry, zip_entry_f
Add the ZIP file to the program funding source file and decompress the file at run time.
Today, I am doing research on the installation package program. My colleagues previously published a lot of scattered files into an installation folder for users. This is a poor experience. I hope to package all the files into one.
I just created a demo to decompress the local zip file and use webview to display one of the html files and directly upload the code. If you need it, you can check it out.
Public class ZipActivity extends Activity {
Private static final String TAG = "HelloXmlActivity ";
Private WebView mWebView;
Private static LinkedHashMap
// Http://blog.csdn.net/com360/article/details/6618086
/** Called when the activ
Generate a zip file and decompress it. if the file is damaged, I use the compression class to compress some images and xml files into a zip file, but if the transfer type is binary during ftp download, the zip file is opened normally. if it is ascii, the zip
{// String filenames = Directory. GetFiles (args [0]);
Crc32 crc = new Crc32 ();ZipOutputStream s = new ZipOutputStream (File. Create (zipfilename ));
S. SetLevel (6); // 0-store only to 9-means best compression
DirectoryInfo di = new DirectoryInfo (zippath );
FileInfo [] a = di. GetFiles (fileFilter );
CutStr = zippath. Trim ();// Compress all files in this directoryWriteStream (ref s, a, crc );// Compress the subdirectories and their files in this d
, instead of installing the software by selecting pre-configured parameters in the installation package. In addition, some software programs can only be installed from the source code.
Currently, source code packages are provided in many places. The exact location of the source code depends on the special needs of the software. For software that is commonly used, such as Sendmail, you can download source code packages (such as http://www.sendmail.org) from a commercial website ). General softwar
Decompress the 7Zip special compression algorithm file and the 7zip Compression Algorithm in the Java project.1. Problem DescriptionJava Web backend downloads a zip file compressed by a special algorithm. Because java itself cannot be used to decompress the file, you must us
Linux ubuntu12.04 decompress the Chinese zip file, decompress it, and garbled code to solve my computer environment: linux ubuntu12.04 has tried many methods, but the following one is OK on my computer. 1.zip file unzipping file name garbled: first install 7zip and convmv (i
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.