How to decompress commands in Linux
. TarUnpack: Tar xvf filename.tarPackage: Tar CVF filename.tar dirname(Note: tar is packed, not compressed !)---------------. GZDecompress 1: gunzip filename.gzDecompress 2: gzip-D filename.gzCompression: gzip filename
.Tar.gz and. tgzDecompress: Tar zxvf filename.tar.gzCompression: Tar zcvf filename.tar.gz dirname---------------. Bz2Decompress 1: Bzip2-D filename.bz2Decompress 2: bunzip2 filename.bz2Compression: Bz
How to decompress the file CentOS .tar.gz. tar. xz .tar.bz2 .tar.lz, centos.tar. lz
The most common source code package downloaded from the network is the .tar.gz .tar.bz2 package, and some are. tar. xz. tar. lz packages.
Some people say that. tar. xz is the king of compression rates, but the compression ratio of .tar. lz is higher:
To decompress .tar.gz .tar.bz2, it is very easy:
Download and decompress the Zip file based on Android, and update the simple help class of the UI
Download file:
/*** Download File ** @ param down_url * @ param output * @ param tmpDir */private void download (String down_url, File output, File tmpDir) {InputStream inputStream = null; outputStream outputStream = null; File tmp = null; int down_step = 1; // prompt step int totalSize = 0; int downloadCount = 0; // the size of int updateCount = 0; // T
/*Provides the ZIP file decompression interface:Adapterzipfile:Input: zipfilename (absolute path of the ZIP file) and outputdirectory (storage path of the ZIP file after decompression)Output:Description: initialization FunctionUnzipfile:Input: NoneOutput:Description: Decompress the ZIP file and store it in the outputdirectory path.Getzipfilelist:Input: NoneOutput: ListNote: the absolute path of the decompressed file list is stored in the arraylist dyn
How to decompress the tar.tar file-general Linux technology-Linux technology and application information. Today, We decompress the .tar.tar file in linux and directly use tar xvf.
Then you can use file to check whether it is of the .tar.bz2 type.
Use tar jxvf FileName.tar.tar.
Later I said on the Internet: tar.tar.tar.bz2 can be decompressed directly using winrar, and then cp can be used in linux.
1. ramdisk. the imgfile gzip is compressed, so use the gunzip command to decompress it. but gunzip extension .gz can be decompressed normally, otherwise it will be ignored. (source file type) ramdisk. img: gzip compressed data, from Unix 2. after the name is removed, the suffix .gz is automatically removed and renamed as ramdisk. img. The file type is ramdisk. img: ASCII cpio archive (SVR4 with no CRC) 3. at this time, you can use the cpio command fro
Php decompress the rarfile code
There are many examples of zip files online. it is not directly supported to decompress the rarfile php. you can use pecl Download the corresponding version of the non-thread-safe dll to the http://pecl.php.net/package/rar Then, it is thrown to the php ext directory. Open php. ini. Add a row Extension = php_rar.dll Restart the web server and php
Public f
How to load the iso cd file and decompress the WIN10 system with the decompressed software installed
The ISO file is a CD image file. In general, we can mount and open the ISO image file by installing the virtual optical drive software, or install the compression/decompression software in the system to decompress the ISO image file, which is also frequently used in two ways, for win8 and win10 systems, the
Java decompress the file
Import org.apache.tools.zip. ZipEntry;
Import org.apache.tools.zip. ZipFile;
Decompress the file
Configuration in maven
com.sun
tools
1.4.2
system
${java.home}/../lib/tools.jar
Public class UnzipUtil {private static void createFile (String path) {File dir = new Fil
The method for resolving the file in the format of tar.gz-general Linux technology-Linux technology and application information. The following is a detailed description. How to decompress a file whose format is tar.gz: the file name is lumaqq_2005-linux_gtk2_x86_with_jre.tar.gz on the table. decompress the file in the desktop directory:
1) 1) Open the terminal and enter # su (# Not as input)
2) enter the
Install Mysql5.7 on CentOS7 (decompress Version)
#### 1. Download the installation packageHttp://dev.mysql.com/downloads/mysql/#downloadsWe recommend that you download the TAR package of the general installation method.2. Check whether the library file exists. If yes, delete it.
[root@localhost Desktop]$ rpm -qa | grep mysqlmysql-libs-5.1.52-1.el6_0.1.x86_64[root@localhost ~]$ rpm -e mysql-libs-5.1.52.x86_64 --nodeps[root@localhost ~]$3. Check whether
Php decompress the rarfile and zip file. There are many examples of zip files on the internet. it is not directly supported to decompress the rarfile php. you can use pecl to pecl. php. netpackagerar downloads the corresponding version of the non-thread-safe dll and then throws it to the zip file network for many examples. the rarfile unzipping php is not directly supported, you can use pecl to download the
;Ini_set ("zlib. output_compression", 4096 );?> Okay, now everything is ready for us to import the final file.Compress the swf file: The code is as follows:Copy code // File name$ Filename = "test.swf ";// Open the file$ Rs = fopen ($ filename, "r ");// Read the file data$ Str = fread ($ rs, filesize ($ filename ));// Set the swf header file$ Head = substr ($ str, 1, 8 );$ Head = "C". $ head;// Obtain the swf file content$ Body = substr ($ str, 8 );//
to be shared to Windows users. If you only share it with the linuxlinuxuser to access macusers, I prefer to select the tar.gz format.
ZipZip may be the most commonly used File compression format. It is used on different operating system platforms, such as Linux, windows, and Mac OS. The compression rate is not very high, and tar.gzand tar.gz 2 are very good in terms of compression rate. Let's start with the question:We can use the following command to compress a directory:
$Zip-R archive
This article mainly introduces how to add MySQL to the system service in a Windows system, mainly for the mysql decompress version. if you are interested, refer to MySQL software version: 64-bit 5.7.12.
1. first configure the MySQL environment variable, add the bin directory Path of MySQL at the beginning of the system environment variable Path, and end with ";". The Path configuration is as follows:
2. modify the contents of the my-default.ini fil
C #. NET uses the third-party class library DotNetZip to decompress/compress the Zip rarfile,
DotNetZip on CodePlex: http://dotnetzip.codeplex.com/
For details, see the source code ...... In short, it feels better than SharpZipLib. In addition, DotNetZip supports VB, C #, and any. NET language.
Compression:
// Define the file path string filename = @ "d:/test.rar"; using (ZipFile zip = new ZipFile () {zip. addFile (@ "C:/text.txt", "txt"); // store th
{// 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 directoryDirect (di, ref s, crc );
S. Finish (
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.