I. File packaging and Decompression
On Windows We most common is nothing more than these three kinds, the *.zip
*.rar
*.7z
suffix of the compressed file
In addition to the above three kinds of common commonly used on Linux, there are,,,,,, *.gz
*.xz
*.bz2
*.tar
*.tar.gz
*.tar.xz
*tar.bz2
briefly introduced as follows
Among them, zip
rar
the tar
most important. These commands and the corresponding decompression commands are described in turn below
1.zip Compressed Packaging program
To use the Zip Package folder:
The above command packs the Shiyanlou home directory into a file and looks at the size and type of the file after packaging
In the first line of the command, the -r
parameter indicates that the recursive package contains the entire contents of the subdirectory, and the -q
parameters are expressed in quiet mode, that is, not outputting information to the screen, -o
indicating the output file, followed by packaging the output filename immediately thereafter. Later use the du
command to view the size of the file after packaging (this command is specified later)
Set the compression level to 9 and 1 (9 max, 1 min), RePack:
A parameter is added here to set the compression level -[1-9]
, 1 for the fastest compression but a large volume, and 9 for the smallest but most time consuming. The last one -x
was to get rid of the zip file we created the previous time, or else it would be packaged in a compressed file this time, Note: Only absolute paths can be used here, otherwise it won't work
2. Unzip the zip file using the unzip command
Will shiyanlou.zip
extract to the current directory
Use Quiet mode to extract files to the specified directory
3.rar packed compression command
rar
is also a commonly used in Windows compressed file format, on Linux can be used rar
and unrar
tools to create and decompress the RAR compression package
Installation rar
and unrar
tools
Create a compressed package or add a file to a compressed package from a specified file or directory
To delete a file from the specified compressed package file
View unresolved files
Use unrar
unzip rar
file
--------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------
Small stove:
Sixth section file packaging and decompression