Tar [-cxtzjvfpPN] file and directory ....Parameter:-c: The parameter command for creating a compressed file (create );-X: Unlock the parameter command of a compressed file!-T: view the files in the tarfile! Note that c/x/t can only exist under the parameter! Cannot exist at the same time! Because it is impossible to simultaneously compress and decompress.-Z: does
The TAR command creates archives for Linux files and directories. With tar, you can create files (backup files) for a specific file, or you can change files in the file or add new files to the file. Tar was originally used to create archives on tape, and now users can create files on any device. With the
Tar unzip commandTar-C: Build Compressed Archives-x: Unzip-T: View Content-r: Append files to the end of the compressed archive-u: Update the files in the original compressed packageThese five are stand-alone commands, which use one of the compression decompression, and can be used with other commands but only one. The following parameters are optional when compressing or extracting files as needed.-Z:-j with gzip properties:-Z with bz2 property:-V wi
Reprint an introduction of the relatively good posts, but also useless when cooked can be detected.Tar- C: Create compressed Archives- x: Unzip- t: View content- R: Append files to the end of a compressed archive file-u: Update files in original compressed packageThese five are stand-alone commands, which use one of the compression decompression, and can be used with other commands but only one.The following parameters are optional when compressing or extracting files as needed. -Z: With gzip pr
Tags: output UNC content generated file specified detailed logo LinuTar-C: Create compressed archives-X: Unzip-T: View content-r: Append files to the end of a compressed archive file-U: Update files in original compressed packageThese five are stand-alone commands, which use one of the compression decompression, and can be used with other commands but only one. The following parameters are optional when compressing or extracting files as needed.-Z: With gzip properties-j: With the bz2 attribute-
Tags: Post linu detailed res original unzip extract named bz2Tar-C: Create compressed archives-X: Unzip-T: View content-r: Append files to the end of a compressed archive file-U: Update files in original compressed packageThese five are stand-alone commands, which use one of the compression decompression, and can be used with other commands but only one. The following parameters are optional when compressing or extracting files as needed.-Z: With gzip properties-j: With the bz2 attribute-Z: With
The parameters of the tar decompression command in linux are described in detail. the tar program is used to store or expand the tar archive file. Archive files can be stored on disks or as common files. Tar requires parameters. the optional parameters are A, c, d, r, t, u,
Tar
Tar is a very extensive document packaging format used in Linux. The advantage is that it consumes very little CPU and time to package files, but it is just a packaging tool and is not responsible for compression. Here's how to package a directory:
# TAR-CVF Archive_name.tar directory_to_compress
Here is how to unpack the
and compression ratio. -num adjusts the speed of compression with the specified number num,-1 or--fast represents the fastest compression method (low compression ratio), 9 or--best represents the slowest compression method (high compression ratio). The system default value is 6. instruction Example: Gzip *% compress each file in the current directory into a. gz file. GZIP-DV *% extracts each compressed file in the current directory and lists detailed information. Gzip-l *% Detail shows the info
, display the filename and compression ratio. -num adjusts the speed of compression with the specified number num,-1 or--fast represents the fastest compression method (low compression ratio), 9 or--best represents the slowest compression method (high compression ratio). The system default value is 6.instruction Example:Gzip *% compress each file in the current directory into a. gz file. GZIP-DV *% extracts each compressed file in the current directory and lists detailed information. Gzip-l *% D
Create an archive with tar
Tar is the abbreviation for "Tape Archive" (Tape archive), which is the early stage of a computer that does not yet have a floppy disk drive, hard drive, and optical drive. When software releases and backups require large volumes of tape, one of the first few programs running on a computer has to be a reading program for the tape. Over time, the
Tar
[Syntax] tar [option] tarfile filename
[Command description]
The file name must be followed by the-f parameter and used as the last parameter;
[Parameter description]
-C. Create a new archive file;
-F specifies the file name;
-R: append an object to an archive object;
-X Extract files from archive files;
-V and-vv display progress information;
-T list the inf
http://blog.csdn.net/rosekin/article/details/18667291
A friend asked how in the space is not very rich situation, the file from one partition tar to another partition, in fact, there are many ways, the use of Pipeline command can be achieved
Such as:
#tar-CVF Home | (Cd/datavg35 TAR-XVF-)---Pack and extract the home f
In Linux, you can use the tail command to create a self-decompressed tar file-general Linux technology-Linux technology and application information. The following is a detailed description. The Tail command parameter contains the-n, -- lines = N, which can directly output the last N lines in a file.
Using this parameter and the
1, Command introduction:Tar is used to package, compress and decompress files.2. Command format:tar [options] File3. Command parameters:The necessary parameters are as follows:-A add compressed file to existing compression-B Set Chunk size-C Create a new compressed file-D Record File differences-R Add a file to a file that has been compressed-u add changed and ex
Tar commandfunction Description: used to establish, restore the backup file of the tool program, it can join, to unlock files in the backup fileSecond, the parameters:-C: Create compressed archives-X: Unzip-T: View content-r: Append files to the end of a compressed archive file-U: Update files in original compressed packageThese five are stand-alone commands, which use one of the compression decompression, and can be used with other commands but only
Generally a folder such as log with tar is easy to pack
The code is as follows
Copy Code
TAR-ZCVF log.tar.gz Log
Just use the above command.
1. Exclude folder:But in the production environment log file is very large, there are dozens of G, we do not need to backup, examples exclude PROFTPD log.I checked it out on the Intern
Through SSH access to the server, will inevitably use compression, decompression, packaging, unpacking, etc., this time the tar command is an essential tool for a powerful. The most popular tar in Linux is the perfectly formed, the most powerful.The TAR command creates archi
xxx.tar.gz View compressed package contents
-X
UnpackTar zxvf a.tar.gz unzip the. tar.gz# #默认解压到当前目录
-C
tar zxvf a.tar.gz-c/root/tar-test-x/ # #解压. tar.gz file and put it under the specified path tar ZCVF a,tar.gz/root/test0511-c/tmp NBSP;
Example# () will/root/test0511/package com
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.