compression methods] tar can be packed or decompressed, and other compression programs can be called to compress or decompress the file, for example, gzip and bzip2 are called. 1) tarcall gzipgzipis a program developed by gnuorganization. the file ending with .gz is the result of gzip compression. The decompress program relative to
the current directory/HOME/USR1, for example:$ TAR-XVF file2.tar-c/HOME/USR2The tar cannot be done without the-C dir parameter:$ TAR-XVF FILE2.TAR/HOME/USR2Tar:/tmp/file:not found in archiveTar:error exit delayed from previous errorsUsing the
Example of the syntax for using the tar command in linux, linuxtar
Syntax: tar [primary option + secondary option] file or directory
When you use this command, the main option is required, and it tells tar what to do. The auxiliary option is used for assistance and can be us
This article was transferred from: http://www.cnblogs.com/li-hao/archive/2011/10/03/2198480.htmlExtractSyntax: tar [main option + Secondary options] file or directoryWhen using this command, the main option is required, and it tells Tar what to do, auxiliary options are auxiliary and can be used.Main options:C Create a new profile. Select this option if the user
ExtractSyntax: tar [main option + Secondary options] file or directoryWhen using this command, the main option is required, and it tells Tar what to do, auxiliary options are auxiliary and can be used.Main options:C Create a new profile. Select this option if the user wants to back up a directory or some files. Equivalent to packaging.X release the file from the
ExtractSyntax: tar [main option + Secondary options] file or directoryWhen using this command, the main option is required, and it tells Tar what to do, auxiliary options are auxiliary and can be used.Main options:C Create a new profile. Select this option if the user wants to back up a directory or some files. Equivalent to packaging.X release the file from the
Syntax: tar [main option + Secondary options] file or directoryWhen using this command, the main option is required, and it tells Tar what to do, auxiliary options are auxiliary and can be used.Main options:C Create a new profile. Select this option if the user wants to back up a directory or some files. Equivalent to packaging.X release the file from the archive
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 app-gateway.log.17
Tar-czvf app-gateway.log.1.0809.tar.gz app-gateway.log.1 {4 .. 8}[Use tar command to compress]
App-gateway.log.14App-gate
ExtractSyntax: tar [main option + Secondary options] file or directoryWhen using this command, the main option is required, and it tells Tar what to do, auxiliary options are auxiliary and can be used.Main options:C Create a new profile. Select this option if the user wants to back up a directory or some files. Equivalent to packaging.X release the file from the
Go to: http://www.cnblogs.com/li-hao/archive/2011/10/03/2198480.htmlExtractSyntax: tar [main option + Secondary options] file or directoryWhen using this command, the main option is required, and it tells Tar what to do, auxiliary options are auxiliary and can be used.Main options:C Create a new profile. Select this option if the user wants to back up a directory
One: TarExtractSyntax: tar [main option + Secondary options] file or directoryWhen using this command, the main option is required, and it tells Tar what to do, auxiliary options are auxiliary and can be used.Main options:C Create a new profile. Select this option if the user wants to back up a directory or some files. Equivalent to packaging.X release the file f
ExtractSyntax: tar [main option + Secondary options] file or directoryWhen using this command, the main option is required, and it tells Tar what to do, auxiliary options are auxiliary and can be used.Main options:C Create a new profile. Select this option if the user wants to back up a directory or some files. Equivalent to packaging.X release the file from the
home.tar.gz/homeExample seven: I want to back up/home, etc, but don't/home/dmtsai[Email protected] ~]# tar--EXCLUDE/HOME/DMTSAI-ZCVF myfile.tar.gz/home/*/etcExample eight: Unpack the/etc/directly under/TMP without generating files![Email protected] ~]# cd/tmp[Email protected] tmp]# TAR-CVF-etc | TAR-XVF-# This action is a bit like cp-r/etc/tmp ~ still has its us
Decompression syntax: tar [main option + Secondary options] file or directoryWhen using this command, the main option is required, and it tells Tar what to do, auxiliary options are auxiliary and can be used.Main options:C Create a new profile. Select this option if the user wants to back up a directory or some files. Equivalent to packaging.X release the file fr
TAR-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 package this five is a separate command, the compression decompression will use one, can be used with other commands but only one of them. The following parameters are optional when compressing or extracting files as needed. -Z:-j with
Tag:.gz Address chinazip2zip bakgzipbz2pre Today, the directory and its files are compressed:/usr/local/test# Tar-cvf/usr/local/auto_bak/test.tar/usr/local/test package only, no compression# tar-zcvf/usr/local/auto_bak/test.tar.gz/usr/local/test after packaging, to gzip compressed after the parameter f the compressed file name is self-fetching, used to do with
today, the directory and its files are compressed:/usr/local/test# tar-cvf/usr/local/auto_bak/test.tar/usr/local/testPackage only, do not compress# tar-zcvf/usr/local/auto_bak/test.tar.gz/usr/local/testAfter packaging, the compressed file name after the parameter F in gzip compression is self-fetching, used tar to do,
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 fil
Linux Decompression Command Encyclopedia decompression tar bz2 zip tar.gz gz May 25, 2008 Sunday 04:57
Roughly summed up the Linux under the various formats of compression package compression, decompression methods. But some of the methods I did not use, also not all, I hope you help me to add, I will be ready to modify, thank you. To organize: A fish that can swimFrom: www.LinuxByte.netLast modi
Example 1: package all the files in the/etc directory into/tmp/etc.tar[Root @ linux ~] # Tar-cvf/tmp/etc.tar/etc [Root @ linux ~] # Tar-zcvf/tmp/etc.tar.gz/etc [Root @ linux ~] # Tar-jcvf/tmp/etc.tar.bz2/etc # Note that the file name after parameter f is obtained by ourselves. We use. tar for identification.# If the z
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.