linux tar.gz zip compression decompression command
http://apps.hi.baidu.com/share/detail/37384818
http://dl.google.com/android/ADT-0.9.6.zip
download SDK link
http://dl.google.com/ Android / Android -sdk_r11-linux_x86.tgz (you can get over the wall by specific file name, and then download it via the link)
tar
-c: establish compressed file
-x: unzip
-t: view the contents
-r: append to the archive file
-u: update compressed files in the original
five independent command, to be used in compression decompression one of them, but can be used in conjunction with other command can only use one of them. The following parameters are required when optional file compression or decompression.
-z: gzip attribute has
-j: There bz2 attribute
-Z: There compress attribute
-v: show all processes
-O: standard output file to unlock the
following parameters is required -f
-f: using the file name, remember, this parameter is the last parameter, behind only access the file name.
# Tar -cf all.tar * .jpg
This Order is all .jpg files labeled as a package called all.tar. -c is to generate new packages, -f specify the package file name.
# Tar -rf all.tar * .gif
This command is all. .Gif files added all.tar package to go inside. -r is meant to increase the file.
# Tar -uf all.tar logo.gif
This command is to update the original tar package all.tar the logo.gif file, -u is the meaning of the update file.
# Tar -tf all.tar
This command is to list all the files all.tar package, -t is the meaning of the listed files
# tar -xf all.tar
This command is solved all.tar package all the files, -x is to unlock the meaning of
Compressed
tar -cvf jpg.tar * .jpg // directory where all jpg files into tar.jpg
after tar -czf jpg.tar.gz * .jpg // directory to package all jpg files into jpg.tar, and its use gzip compression to generate a gzip compressed package named jpg.tar.gz
after tar -cjf jpg.tar.bz2 * .jpg // directory to package all jpg files into jpg.tar, and its with bzip2 compression, to generate a bzip2 compressed packages, jpg.tar.bz2 named
after tar -cZf jpg.tar.Z * .jpg // directory to package all jpg files into jpg.tar, and compress it with compression, to generate a umcompress compressed package named jpg.tar.Z
RAR a jpg.rar compressed * .jpg // rar format, you need to download for RAR Linux
ZIP jpg.zip ZIP // * .jpg format compression, you need to download for ZIP Linux
extracting
tar -xvf file.tar // extract the tar archive
tar -xzvf file.tar.gz // unpack tar.gz
tar -xjvf file.tar.bz2 // unpack tar.bz2
tar - xZvf file.tar.Z // unpack tar.Z
unrar file.rar // E-extracting RAR
the unzip file.zip // extract the zip
summary
1, *. Tar with tar -xvf codecs
2, *. Gz gzip -d or gunzip it by
3, *. Tar.gz * .tgz and codecs with tar -xzf
4, *. Bz2 bzip2 -d use or use bunzip2 extracting
5, *. tar.bz2 with tar -xjf codecs
6, *. Z uncompress with decompression
7, *. tar.Z with tar -xZf codecs
8, *. rar used unrar e decompression
9, *. zip unzip it with
http://apps.hi.baidu.com/share/detail/37384818
http://dl.google.com/android/ADT-0.9.6.zip
download SDK link
http://dl.google.com/ Android / Android -sdk_r11-linux_x86.tgz (you can get over the wall by specific file name, and then download it via the link)
tar
-c: establish compressed file
-x: unzip
-t: view the contents
-r: append to the archive file
-u: update compressed files in the original
five independent command, to be used in compression decompression one of them, but can be used in conjunction with other command can only use one of them. The following parameters are required when optional file compression or decompression.
-z: gzip attribute has
-j: There bz2 attribute
-Z: There compress attribute
-v: show all processes
-O: standard output file to unlock the
following parameters is required -f
-f: using the file name, remember, this parameter is the last parameter, behind only access the file name.
# Tar -cf all.tar * .jpg
This Order is all .jpg files labeled as a package called all.tar. -c is to generate new packages, -f specify the package file name.
# Tar -rf all.tar * .gif
This command is all. .Gif files added all.tar package to go inside. -r is meant to increase the file.
# Tar -uf all.tar logo.gif
This command is to update the original tar package all.tar the logo.gif file, -u is the meaning of the update file.
# Tar -tf all.tar
This command is to list all the files all.tar package, -t is the meaning of the listed files
# tar -xf all.tar
This command is solved all.tar package all the files, -x is to unlock the meaning of
Compressed
tar -cvf jpg.tar * .jpg // directory where all jpg files into tar.jpg
after tar -czf jpg.tar.gz * .jpg // directory to package all jpg files into jpg.tar, and its use gzip compression to generate a gzip compressed package named jpg.tar.gz
after tar -cjf jpg.tar.bz2 * .jpg // directory to package all jpg files into jpg.tar, and its with bzip2 compression, to generate a bzip2 compressed packages, jpg.tar.bz2 named
after tar -cZf jpg.tar.Z * .jpg // directory to package all jpg files into jpg.tar, and compress it with compression, to generate a umcompress compressed package named jpg.tar.Z
RAR a jpg.rar compressed * .jpg // rar format, you need to download for RAR Linux
ZIP jpg.zip ZIP // * .jpg format compression, you need to download for ZIP Linux
extracting
tar -xvf file.tar // extract the tar archive
tar -xzvf file.tar.gz // unpack tar.gz
tar -xjvf file.tar.bz2 // unpack tar.bz2
tar - xZvf file.tar.Z // unpack tar.Z
unrar file.rar // E-extracting RAR
the unzip file.zip // extract the zip
summary
1, *. Tar with tar -xvf codecs
2, *. Gz gzip -d or gunzip it by
3, *. Tar.gz * .tgz and codecs with tar -xzf
4, *. Bz2 bzip2 -d use or use bunzip2 extracting
5, *. tar.bz2 with tar -xjf codecs
6, *. Z uncompress with decompression
7, *. tar.Z with tar -xZf codecs
8, *. rar used unrar e decompression
9, *. zip unzip it with