Commands for compressing and packaging CentOS file systems
1. file compression principle: currently, bytes units are used in computer systems for measurement. However, in fact, the smallest unit of measurement in computer systems is bits, we also
Linux study 5-compression and backup1. Common compressed files in Linux *. files compressed by the Z compress Program (not popular now, and can be decompressed using gzip );*. files compressed by the gz gzip program ;*. bz2 bzip2 program compressed
Tar command
[Root @ Linux ~] # Tar [-cxtzjvfppn] file and directory ....
Parameters:
-C: Create a parameter command for the compressed file );
-X: Unlock the parameter command of a compressed file!
-T: view the files in the tarfile!
Note that
For those who are new to Linux, they will surely get dizzy with a bunch of various file names in Linux. For example, we know that there are only two common types of compressed files in Windows: Zip and. Rap. There are too few developers. This
When writing shell scripts, you often need to decompress them to the specified folder. the tar command is the most common reference. pay attention to the usage of-C. Run the tar command to decompress the file to the specified directory:
The purpose and technology of a compressed file 1 currently our computer uses byte for measurement, but in fact the smallest unit of measurement of the computer is bit. We know that 1 byte = 8bit2 in simple terms, there will be a lot of & ldquo;
? Workplace man-k zipzip:nothing appropriate.In this case, the index library is not established.Man and Whatis share an index library.We use the man Whatis to view: Index databases is used during the search, and is updated by the MANDB pro‐
The tar command, "This is just packing, not compression," is the compression. Unpacking: Tar zxvf FileName. TarPackage: Tar czvf FileName. TarDirnamegz Command Decompression1: Gunzip FileName. GZExtract2: gzip-d FileName. GZCompression: gzip
I. Introduction of use 1, noun distinctionPackage: Make a whole bunch of files or directories into a total file "tar command"Compression: Convert a large file into a small file "gzip,bzip2" through some compression algorithmsMany of the compressors
I. Introduction of use 1, noun distinctionPackage: Make a whole bunch of files or directories into a total file "tar command"Compression: Convert a large file into a small file "gzip,bzip2" through some compression algorithmsMany of the compressors
Packaging and compression of Linux documentsOne, gzip: Compression toolGzip can only compress files, not compressed after the directory directly with the files to be compressed.The file is compressed by default with a suffix name to distinguish what
tar extract command: A package compressed with the TAR command is called a tar package, usually ending in. tar, with the following common parameters:-v--indicates that all procedures are displayed-f--indicates the file name of the specified
Tar command
Zip command
Unzip command
gzip command
bzip2 command
Tar command: Compress and decompress files in tar format
format : tar [main option + Secondary options]
This article describes the programs that are compressed under Linux, such as tar, gzip, gunzip, bzip2, bunzip2, compress, uncompress, zip, unzip, RAR, Unrar, and how to use them for. Tar,. GZ,. tar.gz,. tgz,. bz2,. tar.bz2,. Z. Tar. Z,. zip,. rar 10
1. The principle of file compression: At present, the computer system is used bytes units to measure, but, in fact, the smallest unit of measurement of computers should be bits, in addition, we also know 1byte=8bits. That is, each byte will have 8
Archive Decompression {tar{tar zxvpf gz.tar.gz-C to the directory in the specified directory package#Unpacking tar.gz not specifying directory is full decompressionTar zcvpf/$path/gz.tar.gz *#Packing GZ Note * Preferably with a relative pathTar zcf/$
1. Packaging and compressing filesCurrent gzip and bzip2 are commonly used under Linux to compress files, tar package files. Common extensions: *.gz gzip Compressed files *.bz2 bzip2 Compressed files *.tar tar packaged files, no compressed *.tar.gz
For those who have just come into contact with Linux, it will definitely give Linux a bunch of different filenames to stun. Don't say, just for example, we know that the most common compressed files under Windows are only two, one is zip, the other
Ar
Function Description: Create or modify the stored files, or extract files from the saved files.
Syntax:ar[-dmpqrtx][cfossuvv][a][b][i][file [member file]
Supplemental Note: AR allows you to assemble a number of files into a single standby file.
Prepare for Work
[Root@centos-01 ~]# cd/tmp/[root@centos-01 tmp]# ls 1.txt
Systemd-private-40c0e692674844949b91361dc6ab4a40-chronyd.service-6km7k9
Systemd-private-40c0e692674844949b91361dc6ab4a40-vgauthd.service-3w1kyg Systemd-private-40c0e6926748
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.