Kali Linux Compressed File Decompression command (contains 7z)

Source: Internet
Author: User
Tags bz2 rar kali linux

Tar
Unpacking: Tar xvf Filename.tar
Package: Tar cvf filename.tar DirName
(Note: Tar is packaged, not compressed!) )
———————————————
. gz
Decompression 1:gunzip filename.gz
Decompression 2:gzip-d filename.gz
Compression: gzip FileName
. tar.gz
Decompression: Tar zxvf FileName.tar.gz
Compression: Tar zcvf FileName.tar.gz DirName
———————————————
. bz2
Decompression 1:bzip2-d filename.bz2
Decompression 2:BUNZIP2 filename.bz2
Compression: Bzip2-z FileName
. tar.bz2
Decompression: Tar jxvf FileName.tar.bz2
Compression: Tar jcvf FileName.tar.bz2 DirName
———————————————
. BZ
Decompression 1:bzip2-d filename.bz
Decompression 2:BUNZIP2 filename.bz

. tar.bz
Decompression: Tar jxvf FileName.tar.bz
———————————————
. Z
Decompression: uncompress filename.z
Compression: Compress FileName
. Tar. Z
Decompression: Tar zxvf filename.tar.z
Compression: Tar zcvf filename.tar.z DirName
———————————————
. tgz
Decompression: Tar zxvf filename.tgz

. tar.tgz
Decompression: Tar zxvf FileName.tar.tgz
Compression: Tar zcvf FileName.tar.tgz FileName
———————————————
. zip
Decompression: Unzip Filename.zip
Compression: Zip Filename.zip DirName
———————————————
. rar
Decompression: rar a Filename.rar
Compression: RAR e Filename.rar
———————————————
. Lha
Decompression: Lha-e Filename.lha
Compression: Lha-a Filename.lha FileName

Use of the 7z command 1. Extract 7z files 7za x phpmyadmin-3.3.8.1-all-languages.7z-r-o./

Parameter meaning:

x represents the extracted file and is extracted by the original directory tree (and also the parameter e is the extracted file, but it will extract all the files to the root, not their original folder)

phpmyadmin-3.3.8.1-all-languages.7z is a compressed file, here I use Phpadmin to do the test. The phpmyadmin-3.3.8.1-all-languages.7z in the current directory is used here by default

-R means recursive decompression of all subfolders

-O is the specified directory to extract to,after-O is no space, direct access to the directory. This is a point to note.

2. zip file/folder 7za A-t7z-r mytest.7z/opt/phpmyadmin-3.3.8.1-all-languages/*

Parameter meaning:
A for adding files/folders to a compressed package

-T is the specified compression type, which is set to 7z, not specified, because the 7za default compression type is 7z.

-R means that all subfolders are recursively owned

MYTEST.7Z is the compressed package name after compression

/opt/phpmyadmin-3.3.8.1-all-languages/*: is the compression target.

Note: 7za does not only support. 7z compression format, it also supports compression types such as. tar.bz2. As described above, specify with-T.

Kali Linux Compressed File Decompression command (contains 7z)

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.