The most common packaging program under Linux is tar, which is often referred to as the TAR package, and the tar package file commands are usually terminated with. Tar. After the tar package is generated, it can be compressed with other programs, so
Summarizes the compression and decompression methods of compressed packets in various formats under Linux. But some of the methods I did not use, but also not all, I hope you can help me to add, I will revise the perfect at any time, thank you!. Tar
In Linux, users often need to back up data in computer systems. To save storage space, backup files are often compressed. This article provides a general summary of the compression and decompression commands.
.Tar.gzDecompress: Tar zxvf
Linux users often need to back up the data in the computer system, in order to save storage space, often the backup file compression, this article is a summary of the compression and decompression command. tar.gzDecompression: Tar zxvf
Linux under the Tar decompression GZ decompression bz2 and so on various decompression file use method
. tar
Unpack: Tar xvf Filename.tar
Packing: Tar cvf filename.tar dirname
(Note: Tar is packed, not compressed.) )
———————————————
.
Java EE Development of various types of resources download list, the history of the most complete IT resources, personal collection summary.
Linux users often need to back up the computer system data, in order to save storage space, often the
In. NET 2.0, you can use sharpziplib, an open source DLL, to easily decompress ZIP files and GZ files.
You can download sharpziplib here.
The following describes the specific code:
1. Unzip the ZIP file:
Namespace: icsharpcode. sharpziplib.
1.spark Read the compressed file of HDFs GZ
spark1.5 later versions support direct reading of files in GZ format, no difference from reading other plain text files.Start the spark shell interface and read the GZ file in the same way as a plain text
After downloading, unzip it and then hit the command in Terminal:复制文件:蓝色部分为你解压文件的路径,直接拖到这里就行了$ sudo mv mysql-5.1.45-osx10.6-x86_64文件路径 /usr/local/mysql接下来切换到:$ cd /usr/local$ sudo chown -R mysql:mysql mysql$ cd mysql$ sudo scripts/mysql_install_db --
. 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
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.