Requirements: In the Linux server, a single file needs to be compressed, and then migrated to a new server, because the server configuration is very high, the transmission is over the public network, and the bandwidth becomes a bottleneck. Therefore, in the pursuit of ultimate compression, the smaller the file, the better.
zip command
The zip command supports specifying the compression level with options "-1" to "-9". A higher number indicates a higher compression ratio, but also an increase in the time spent. For example, using the "-9" option for the highest compression level can get the best compression results.
7z command
First, the installation command is as follows:
With the LZMA compression algorithm, the importance of data compression technology is becoming increasingly prominent as the volume of data continues to grow. LZMA (Lempel-Ziv-Markov chain-Algorithm) is an efficient data compression algorithm that has been widely used in many fields. The LZMA algorithm, which stands for Lempel-Ziv-Markov chain Algorithm, is an algorithm for lossless data compression. It was developed by Igor Pavlov in 1996 or 1998 and was first used in the 7z format of the 7-Zip compression software. The LZMA algorithm uses a dictionary compression scheme, similar to the LZ77 algorithm published by Abraham Lempel and Jacob Ziv in 1977, but LZMA applies a modified LZ77 algorithm at the bit level rather than the byte level.
The command is as follows:
MeasurementA 980M file is compressed to 8.5M。
Reference:The hyperlink login is visible. |