1. The function description compresses and decompresses the file. This command is similar to the “gzip/gunzip” command and can only compress files. For the directory, only all the files in the directory can be compressed. After the compression is completed, a compressed package with the suffix "“.bz2”" is generated in the directory. Bunzip2 is actually a symbolic link to bzip2, which is a soft link, so compression and decompression can be achieved by bzip2. The format is as follows: bzip2 [options] The options for the bzip2 command to be compressed or decompressed and their descriptions are shown in Table 4.30. Table 4.30 Options for bzip2 Command and Descriptions
Option Meaning -d Perform decompression, at this time the option is followed by the file to be decompressed -v Compress or decompress the file, the details are displayed -k bzip2 is compressed or After decompressing, the original file will be deleted. To retain the original file, use this option -f bzip2. When compressing or decompressing, if the output file has the same name as the existing file, the preset will not overwrite the existing file. To override, use this option -t test <;bz2” compressed file integrity - compression level compression level can be selected from 1 to 9, the higher the number, the higher the compression rate 2. For example, compress etc.zip, var.zip, and backup.zip in the /opt directory to set the compression ratio to the highest. At the same time, the original file is not deleted after the compression is completed, and the details of the compression process are displayed. [root@mylinux ~]# bzip2 -9vk /opt/etc.zip /opt/var.zip /opt/backup.zip etc.zip: 1.048:1, 7.633 bits/byte, 4.59% saved, 49490414 in, 4721194 out .var.zip: 1.048:1, 7.633 bits/byte, 4.59% saved, 49490414 in, 2821065 out.backup.zip: 1.046:1, 7.647 bits/byte, 4.42% saved, 8410 in, 8823 out. After compression The corresponding etc.zip.bz2, var.zip.bz2, and backup.zip.bz2 files are generated under /opt.
With the increasing use of Linux, there are a large number of network servers using the Linux operat
We all know that lvm can expand the file system online, the function is very convenient, but if the
In todays increasingly prominent network security issues, how to ensure the security of Ubuntu syste
1. Get root privileges without logging in. If you dont set GRUB password, then we can use the easie
Nginx replace text module Substitution
6 emergency handling tips in the Linux operating system
Glusterfs cluster distributed file system off the brick processing
Apache rewrite configuration item explanation
Linux VPS system security settings basic tutorial
Optimizing Linux System Hard Disks to Solve Disk Fragmentation
Linux compulsory bit and adventure position tips introduction
How Linux shrinks the lvm root partition
Apache and Tomcat clusters under Liunx
How to change the working group of win7 computer?
How to retrieve lost Microsoft Security Essentials right scan menu
How to turn off SSD hard disk indexing service under Windows 8 system
Windows 8 hidden feature open tool release
How to open Windows Defender in win10?
Windows 7 system video capture when the screen is completely black
How to fix the problem that Win8/8.1 system Flash update can not be loaded
How to solve the word document under win7 system can not open
Win8 installation store application error 0x80244019 solution