TARCommand nameThe GNU version of the tar-tar file management program. The following sections describe their meanings one by one.OverviewTar [-] A -- catenate -- concatenate | c -- create | d -- diff -- compare | r -- append | t -- list | u --
In Linux, users often need to back up data in computer systems. To save storage space, backup files are often compressed. This article provides a general summary of the compression and decompression commands.
.Tar.gzDecompress: Tar zxvf
. tarUnpacking: Tar xvf Filename.tarPackage: Tar cvf filename.tar DirName(Note: Tar is packaged, not compressed!) )---------------------------------------------. gzDecompression 1:gunzip filename.gzDecompression 2:gzip-d filename.gzCompression: gzip
Decompression is quite familiar, and suddenly I don't know how to compress it... Sorry ..
This is a method provided on the Internet:
.Tar.gzDecompress: Tar zxvf filename.tar.gzCompression: Tar zcvf filename.tar.gz dirname
This section roughly
Linux tar command parameters and usage details--linux Package backup command tarCommandGNU version of the Tar-tar file management program. The meanings are described belowtar [-cxtzjvfppn] files and directories .... Common parameters: -C: Establish
When pulling logs today, I suddenly found several logs to be pulled, so I began to package the logs.
Ls app-gateway.log.1 {4 .. 8} [the log to be intercepted is these]
App-gateway.log.14 app-gateway.log.15 app-gateway.log.16
Ext: http://blog.csdn.net/teamlet/archive/2008/02/18/2104262.aspx
This article cites two parts of Tar, the first part is an example of using tar. The second part is a detailed parameter description.
The first part:
Tar command
tar [-cxtzjvfppn]
Example !!!!!
1.zip a group of files with the suffix tar.gz.# Tar CVF backup.tar/etc# Gzip-Q backup.tarOr# Tar cvfz backup.tar.gz/etc/
2.release a file suffixed with tar.gz.# Gunzip backup.tar.gz# Tar xvf backup.tarOr# Tar xvfz backup.tar.gz
3.
Reprinted from: http://qiupeng.itpub.net/post/8489/55305
Tar command
Tar can create files and directories. Using tar, you can create a file (backup file) for a specific file, change the file in the file, or add a new file to the file. Tar was
Tar command
Tar can create files and directories. Using tar, you can create a file (backup file) for a specific file, change the file in the file, or add a new file to the file. Tar was originally used to create files on tape. Now, you can create
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.