Compressing file meaning saves network transmission bandwidth and reduces disk usage. But a certain CPU will be used.1. GzipCompression directory is not supported, gzip directly with the file name, when compressed in the current directory, the
Compression Packaging Introduction:Commonly used compressed file types:1, windows:.rar/.zip/.7z2, Linux:.zip/.gz/.bz2/.xz/.tar/.gz/.tar/.bz2/.tar/.xzGzip Compression Tool:1, experiment, CD to/tmp directory, use MKDI to create a directory d6z, in the
The following is from: Amin http://www.apelearn.com/study_v2/chapter11.html, the commonly used to write, the feeling can be; Just compress and unzip the tool: Gzip Tool:Just remember these parameters when you use them: NOTE: gzip cannot compress the
Linux inside the compression decompression is very commonly used instructions, and Linux support compression instructions are more diverse, and different compression using different technologies, is currently commonly used mainly gzip and bzip2
Compression Decompression Command Introduction. GZ compression to gzip files. bz2 compression to bzip2 file. tar package files, merging multiple files into one directory. tar.gz first into a tar package, then compressed to gzip file. tar.bz2 first
Linux diary (Exercise record): gzip, bzip2 & tar Use the-c parameter to output the compressed content to the screen, and use the-v output compression ratio to create a compressed file with redirection:Use the-d parameter to decompress the package.
Gzip, bzip2, tar, zip command usage details 1. gzipgzip is a GNU compression program. It only compresses a single file. The basic usage is as follows: after the $ gzip filenameprogram is executed, the file name is changed to filename.gz, And the
Common compression commands on Linux Gzip,bzip2,zip/unzip
1. Gzip
Gzip-generated compressed file is *.gzFormat: gzip [-cdtv#] FileMain parameters:-C: Output compressed data to the screen-D: Decompression-T: Used to verify if there are any errors
1. Write a script to determine whether the shell of all users on the current system is a login shell (that is, the user's shell is not/sbin/nologin), the number of these two types of users, and the string comparison;1) Create file]# vim
*. Files compressed by the Zcompress program ;*. bz2bzip2 compressed file ;*. files compressed by the gzgzip program ;*. the data packaged by the tartar program has not been compressed. the files packaged by the * .tar.gz tar program are compressed
There are many compression tools under linux, and the commonly used format is tar.gz, tar.bz2, zip, etc.
A simple comparison:
Tar-zcvf etc.tar.gz/etctar-jcvf etc.tar.bz2/etczip-ry etc.zip/etc
Note: you must add two options to the zip command.
-
1. First import Bzip2.jar in the project; (Download address: http://download.csdn.net/detail/majian_1987/5997697)
2. Download Jzlib source code Zip package, extract, and then copy all com.jcraft.jzlib.* Java files to the project (even with a Java
Linux under a lot of compression tools, commonly used formats are tar.gz, tar.bz2, zip, etc.
A simple comparison:
TAR-ZCVF etc.tar.gz/etc
tar-jcvf etc.tar.bz2/etc
zip-ry etc.zip/etc
Note that the zip command adds two options
-R represents a
What this section says:
9.1 The TAR command for file archiving and compression
9.2 Zip Management Compressed Files
9.3 Understanding GZIP-BZIP2-XZ Managing Compressed Files-file-sort viewing files
9.1 Tar command to archive and
1. Write a script to determine whether the shell of all users on the current system is a login shell (that is, the user's shell is not/sbin/nologin), the number of these two types of users, and the string comparison;[Email protected] ~]# vim
File and directory management and the use of the VI editorFile and directory management, just beginning to learn this piece of feeling a lot of content is miscellaneous, but after the completion of the summary, found in fact very organized and no
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.