Common compression and decompression commands in linux and aix
Source: Internet
Author: User
Commonly used compression and compression commands of linuxand aixare usually compressed and compressed command records of commonly used compression and compression commands 1.gzip *. gz format (gzip, gunzip) compression (only files can be compressed without retaining the source files) gzip file name www.2cto.com decompress gzip-d *. g... common compression and decompression commands in linux and aix are usually compressed and decompressed. the command output is usually compressed and the command output is 1.gzip *. gz format (gzip, gunzip) compression (only files can be compressed without retaining the source files) gzip file name www.2cto.com decompress gzip-d *. gz or gunzip * .gz2.tar (package the directory into a file) * .tar.gz one-step packaging and compression [root @ localhost tmp] # tar-zcvf testjxd.tar.gz testjxd unzip [root @ localhost tmp] # tar-zxvf testjxd.tar.gz3.zip (supported by Linux and Windows by default) -r can compress the Directory (zip, unzip) and compress the directory [root @ localhost tmp] # zip-r jxd.zip jxd decompress [root @ localhost tmp] # unzip jxd.zip 4.bz2 (the compressed package is relatively large, applies to large files, upgraded gizp versions, and-k can retain the original files) (bzip2, bunzip2) compression [root @ localhost tmp] # bzip2-k jxdtest unzip [root @ localhost tmp] # Common compression and decompression commands under bunzip2 jxdtest.bz2 aix www.2cto.com 1. jar usage: jar {ctxu} [vfm0Mi] [jar-file] [manifest-file] [-C Directory] file name... option: -c create a new archive-t list the archive content list-x expand the named (or all] files in the archive-u update the existing Archive-v generate detailed output to the standard output-f specifies the archive file name-m contains the marked information from the marked File-0 only storage mode; without ZIP compression format-M does not generate a list of all items (manifest) file-I generates index information for the specified jar file-C changes to the specified directory and contains the following files:
If a file name is a directory, it is recursively processed. Both the configuration (manifest) file name and the archive file name need to be specified, in the same order specified by the 'M' and 'F' signs. Example 1: Archive two class files to a file named 'classes. jar files: jar cvf classes. jar Foo. class Bar. class Example 2: Use an existing manifest file 'mymanifest 'to archive all the files in the foo/directory to a file named 'classes. jar files: jar cvfm classes. jar mymanifest-C foo/www.2cto.com compressed DCC-AIX:/# jar cvf 1.jar welcome.html added manifestadding: welcome.html (in = 5406) (out = 1786) (deflated 66%) decompress jar-xvf aix.ppc64_11gr2_database204 f2.zip 2. tar 3 is the same as linux. To install oracle in AIX such as zip, unzip, and gzip, you need to decompress the zip file. Therefore, you need to install the unzip package. Check whether the rpm. rte package www.2cto.com lslpp-l | grep-I rpm. rte is available in aix.
If not, use the aix installation disk to install the package. This package is now available in my system. You can use the rpm command like linux to install the software package.
Download gzip package, 5.2, 5.3 available official website: small (JAVA6 64bit): http://ww.ibm.com/developerworks/java/jdk/aix/service.html author yujin2010good
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.