First, 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 properties-j: With the bz2 attribute-Z: With the Comp
Such as:
Unzip the file in the current directory:
The code is as follows
Copy Code
Tar zxvf my_name.tgz or tar zxvf MY_NAME.tar.gz
Example: View the contents of the Usr.tar backup file and display it as a split screen on the monitor.
The code is as follows
Copy Code
$ tar TVF Usr.tar | More
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 properties-j: With the bz2 attribute-Z: With the Compress at
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 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 it have th
Linux Extract tar commandTar commandtar [-cxtzjvfppn] files and directories ....Parameters:-C: Create a compressed file parameter instruction (create meaning);-x: Unlock a parameter command for a compressed file!-T: View the files inside the Tarfile!In particular, in the release of the parameters, c/x/t can only exist one! Not exist at the same time!Because it is not possible to compress and decompress at t
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 properties-j: With the bz2 attribute-Z: With the Compress at
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
-zxvpf/tmp/etc.tar.gz/etc# The properties of this-p are important, especially if you want to keep the properties of the original file!Example six: In/home, more than 2005/06/01 new files are backed up[Email protected] ~]# tar-n "2005/06/01"-ZCVF 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
/06/01 '-ZCVF 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 ~ sti
Tar: create an archive file [Syntax] tar [option] tarfilefilename [command description] the file name must be followed by the-f parameter and
Tar
[Syntax] tar [option] tarfile filename
[Command description]
The file name must be f
A detailed description of the TAR compression decompression command under LinuxTar-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 option
A detailed description of the TAR compression decompression command under LinuxTar-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 option
Tar command
[Root@linux ~]# tar [-cxtzjvfppn] files and directories ....Parameters:-C: Create a compressed file parameter instruction (create meaning);-X: Unlocks a parameter directive for a compressed file.-T: View the files inside the tarfile.In particular, it is noted that c/x/t can only exist in the release of a parameter. Cannot exist at the sam
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 properties-j: With the bz2 attribute-Z: With the Compress at
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 properties-j: With the bz2 attribute-Z: With the Compress at
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 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 with compress attri
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 properties-j: With the bz2 attribute-Z: With the Compress at
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 properties-j: With the bz2 attribute-Z: With the Compress at
1. With the tar command, you can package a whole bunch of files and directories into a single file, which is useful for backing up files or combining several files into one file for easy network transmission.2. Tar command parameters-A or--catenate: Add files to the existing backup file;-B: Set the chunk size;-C or--cr
Tar command misunderstanding-general Linux technology-Linux technology and application information. The following is a detailed description. Recently, the test environment was set up. These tasks were originally done by the test Manager. Now, we started to perform performance tests. A problem occurs when you use the tar comma
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.