Step 1: Know How To Compress and decompress files in linux

Source: Internet
Author: User
The first step for beginners is to know how to compress and decompress files in linux-general Linux technology-Linux technology and application information. For more information, see the following. What is the secret file? How should I use it? I believe you will understand this article.

As a newbie, the first step to learn about linux is to install the application software on the platform. However, the software downloaded to the Internet ends with .tar.gz and does not know how to use it. In fact, these are all compressed file formats in linux. The details are as follows:

.Tar.tar .tar.bz2
Tar jxf myplayer.tar.tar
Tar zxvf * .tar.bz2

. Tar
Unlock: tar xvf FileName.tar
Production: tar cvf FileName.tar DirName
---------------------------------------------
. Gz
Undo: gunzip FileName.gz
Undo: gzip-d FileName.gz
Production: gzip FileName.gz
.Tar.gz
Undo: gzip-d Filename.tar | tar xvf FileName.tar.gz
Production: tar cvf FileName.tar | gzip FileName.tar.gz


-------------------------------------------
. Bz2
Unlock 1: bzip2-d FileName.bz2
Unlock 2: bunzip2 FileName.bz2
Production: bzip2-z FileName
.Tar.bz2
Unlock: tar jxvf FileName.bz2
Production: tar jcvf FileName.bz2 DirName
---------------------------------------------
. Bz
Undo: bzip-d FileName. bz
Production: Unknown
. Tar. bz
Unlock: Unknown
Production: Unknown
---------------------------------------------
. Z
Uncompress FileName. Z
Production: compress FileName
. Tar. Z
Undo: tar Zxvf FileName.tar. Z
Production: tar Zcvf FileName.tar. Z DirName
---------------------------------------------
. Tgz
Unlock: Unknown
Production: Unknown
. Tar. tgz
Undo: tar zxvf FileName. tgz
Production: tar zcvf FileName. tgz FileName
---------------------------------------------
. Zip
Unzip FileName.zip
Production: zip FileName.zip DirName
---------------------------------------------
. Rar
Undo: rar a FileName.rar
Production: rar e FileName.rar

Try it.

In addition, it is recommended that you read this book, "getting started with Ubuntu Linux to proficient" published by Li weize Machinery Industry Publishing House.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.