Tar commandCan be used to compress packaged single files, multiple files, a single directory, multiple directories.Linux Packaging Command _tarThe tar command can be used to compress a packaged single file, multiple files, a single directory, and multiple directories.Common formats:Single file compression package
Summarize the commonly used tar decompression commands as a memo: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
, 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 director
File compression and decompressionTar commandThe 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
A detailed description of the tar command under LinuxTar is one of the most commonly used backup tools in a Linux environment. Tar (tap archive) is intended to manipulate tape files, but Linux-based file manipulation mechanisms can also be applied to normal disk files. Tar can be used to create, restore, view, manage f
Tags: unzip gzip for tle POS representation and. GZ sizeA 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
-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 attri
Tar command tar [-cxtzjvfpPN] file and directory .... parameter:-c: create a compressed file parameter command (create);-x: unlock a compressed file parameter command! -T: view the files in the tarfile! Note that c /...
Tar
# CompressionTAR-CZVF ***.tar.gzTAR-CJVF ***.tar.bz2# UnzipTAR-XZVF ***.tar.gzTAR-XJVF ***.tar.bz2 +++++++++++++++++++++++++++++++++++++++++++++Brief introductionParameters:-C: Create a compressed file parameter directive (the meaning of Create);-x: Unlock a compressed file parameter command!-T: View the files inside the Tarfile!In particular, in the release of the parameters, c/x/t can only exist one! Cannot exist at the same time!Because it is n
The Linux tar command is a powerful weapon for filing or distributing files. The GNU tar Archive package can contain multiple files and directories, retains its file permissions, and supports multiple compression formats. Tar represents "Tape archiver", a format that is POSIX-compliant.
ArticleDirectory
Unzip the tar command in Linux
Unzip the tar command in Linux
Tar command
Tar [-cxtzjvfppn] file and directory .... Parameter:-C: Create a compressed
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. Compress With one
tar command detailed
-C: Set up compressed files
-X: Decompression
-T: viewing content
-R: Appending files to the end of a compressed archive
-U: Updating files in original compressed package
These five are independent commands, compression decompression to use one of them, can be used with other commands but only one.
The following parameters are optional when compressing or decompressing files as needed.
Reference http://blog.sina.com.cn/s/blog_62449fcf0100nfar.htmlThe Linux under tar command is extracted to the specified directory:#tar zxvf/bbs.tar.zip-c/zzz/bbs//The root directory under the Bbs.tar.zip decompression to/zzz/bbs, the premise to ensure that the existence of/zzz/bbs this directoryThis is a bit different from the CP
Tar command
[[Email protected] ~] #Tar [-cxtzjvfppn] file and folder ....Number of shards:-C: Create the sequence number command for a compressed file (create );-X: number of bytes of a compressed file!-T: view the files in the tarfile!Note that C/X/t only exists in the lower limit! Cannot exist at the same ti
Tar command
[[Email protected] ~] #Tar [-cxtzjvfppn] file and folder ....Number of shards:-C: Create the sequence number command for a compressed file (create );-X: number of bytes of a compressed file!-T: view the files in the tarfile!Note that C/X/t only exists in the lower limit! Cannot exist at the same ti
There are many Linux compression commands. Here, let's talk about the tar command first. This command should be the most commonly used. How can this problem be solved. We will introduce the Linux compression command later to make it a series. A detailed example is provided to help you understand the situation.
[Root @
detailed explanation of the tar commandTags: linuxfileoutputbashinputshell2010-05-04 12:11 235881 people read review (a) collection report Classification:Linux/unix Server (121)Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Tar command
[[emailprotected] ~]#
Compression and decompressionTar commandThe tar command can be used to create files and archives for Linux.With tar, you can create files for a specific file (a file), change files in a file, or add new files to the file. Tar was originally used to create files on a magnetic tape, and now, you can create files on any o
Summary of commonly used tar decompression commands, as a memo:tar-c: to establish a compressed file-x: Decompression-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, compressed decompression to use one of them, Can be used with other commands but only one. The following parameters are optional when compressing
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.