1, *.tar with TAR–XVF decompression2, *.gz with gzip-d or gunzip decompression3, *.tar.gz and *.tgz with TAR–XZF decompression4, *.bz2 with bzip2-d or with BUNZIP2 decompression5, *.tar.bz2 with TAR–XJF decompression6, *. Z Extract with Uncompress7, *.tar. Z Extract with
Unzip a file today, come out a lot of this:/bin/tar:ignoring Unknown Extended header keyword ' Schily.dev '/bin/tar:ignoring Unknown Extended header keyword ' Schily.ino '/bin/tar:ignoring Unknown Extended header keyword ' schily.nlink 'Check the information and say it is necessary to update my tar versionFind official Website:https://ftp.gnu.org/gnu/tar/Found the latest version is 1.29And my version is 1.2
The most common packaging program under Linux is tar, and the packages we use in the TAR program are often referred to as the TAR packets, and the TAR package file commands are usually ended with. Tar. After the tar package is gen
. 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 FileName. tar.gz and. tgzDecompression: Tar zxvf FileName.tar.gzCompre
First, find out what full backup, Incremental backup, and differential backup are. In short, it can be understood as follows:
Full backup: Back up all files once.
Incremental Backup: the difference between this backup and the previous backup.
Differential backup: Backup Based on full backup.
A tar command
# Create a test folder and file [root @ serv01 web] # cd/data [root @ serv01 data] # ls [root @ serv01 data] # mkdir/work [root @ serv01 Data]
path for the extracted files, such as the XZ compressed file as 1.txt.xz#xz-D 1.txt.xz-c >/tmp/1.txt4, ZipunzipZip followed by file compression after the filename and then with the file to be compressed, in the current directory compression, the original file will disappear, support compression directory but to add-rCompression: #zip 1.txt.zip 1.txtSpecify the compression path:#zip/tmp/a/1.txt.zip/tmp/1.txt compress the/tmp/1.txt to/tmp/a/under the text to 1.txt.zipCompression directory: #zip-R
In the Linux operating system, the compression and decompressing of the *. zip, *. tar, * .tar.gz, * .tar.bz2, *. tar. xz, *. jar, and * .7z formats are as follows: .tar.gz.tar.bz2Zip Format
Compression: zip-r folder target file name. zip [original file/directory name] unzip: unzip folder original file name. zip
Note: The-r parameter indicates recursion.Tar format (this format is only packaged, not compress
Packaging Example: package files in the /usr/local/src/zlib-1.2.5 directory into zlib-1.2.5.tar.gzCD/USR/LOCAL/SRCTAR-CZVF./zlib-1.2.5.tar.gz/zlib-1.2.5/*# compressed into the development directory (for example:/root/2/) tar-czvf/root/2/ zlib-1.2.5.tar.gz./zlib-1.2.5/*
#压缩
TAR-CZVF ***.tar.gz
TAR-CJVF ***.tar.bz2
#解压缩
Run the tar command and run the tar command to implement full backup and Incremental backup. First, find out what full backup, Incremental backup, and differential backup are. In short, it can be understood as follows: Full backup: A backup is performed on all files. Incremental Backup: the difference between this backup and the previous backup. Differential backup: Backup Based on full backup. A
How to decompress the CentOS .tar.gz. tar. xz .tar.bz2. tar. lz File
The most common source code package downloaded from the network is the .tar.gz .tar.bz2 package, and some are. tar. xz. tar. lz packages.
Some people say that. tar. xz is the king of compression rates, but
For details about how to use the linux tar command to compress, view, decompress, and use the tar command
Command prototype:
Tar [Option…] [FILE]…
New
-C,--create creates a new compressed file
View
-T,-list: list archived content
Extract
-X,-extract,-get to extract files from the archive
Auxiliary options
-F filename: file name followed by file
-Z use
Tar parameter, tar
Parameters:
C. Create a new archive file. Select this option if you want to back up a directory or some files.R: append the file to the end of the file. For example, if you have prepared a backup file and find that there is still a directory or some files have forgotten to be backed up, you can use this option to append the directory or files you have forgotten to the backup f
Linux Command tar, linux Command tar
The tar command is a reliable method for backing up files in Unix/Linux systems. It can work in almost any environment and has the permission of all users.
Syntax:
Tar [main option + auxiliary option] file or directoryMain options:
C. Create a new archive file. (Package) x release t
Redhat uses tar to package files. If the target file does not exist, a tar package-general Linux technology-Linux technology and application information is generated. For details, see the following. Redhat uses tar to package the file. If the target file does not exist, a tar package is also generated.
The younger bro
In linux, tar is used to package and split files, and tar is used to decompress files.
First, compression:
Tar-czvp-f skype_backup.tar.gz skype_backup
Split:
Split-B 4000 k skype_backup.tar.gz skype_backup_20090626.tar.gz.-verbose
The preceding two commands are combined into one sentence:
Tar-czvp-f-sky
One requirement is to compress a folder, but to exclude another folder--exclude command, but execute on Mac
TAR-ZCVF test.tgz test/--exclude *.jpg
Always prompt
Tar:--exclude:cannot stat:no such file or directory
And on Linux does not prompt this error, in the end is why?Later found that Mac and Linux do not deal with this parameter, through the man
It is generally easy to package directly with the tar command, using TAR-ZCVF test.tar.gz test directly.In many cases, we have to package a directory, and there are dozens of subdirectories and sub-files in this directory, we need to exclude 1, 2 directories or files when packaging.At this time we are packing with the tar command, add parameter--exclude can achie
Because yesterday the company intranet server was broken, so the need to build a new Linux environment.When you install MAVEN, use the tar command to decompress maven.tar.gz appears:Tar:this does not look like a tar archiveTar:exiting with failure status due to previous errorsThe solution:# gzip-d ***.tar.gz# TAR-XF ***.tar.gzThis article is from the Linux commun
Tar (Tape ARchive, tape archive abbreviation, LCTT: Originally designed to package files on tape, now most of us use it to make a backup of a partition or some important directory) is the most widely used command in Unix-like systems, Used to archive multiple files or directories into a single archive file, and the archive can be further compressed using technologies such as gzip or bzip2. In other words, the tar
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.