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
parameters of tar. The tar information is as follows:1. Command format:tar[necessary parameters [selection parameters] [file]2. Command function:Used to compress and decompress files. The tar itself does not have compression capabilities. is implemented by calling the compression function (-z,-j,-z in the command argu
This article comes from "Stones" blog, http://pengyl.blog.51cto.com/5591604/1191197
Packaging, a combination of many files and directories is saved as a whole package file for easy delivery or portability. The compression operation can further reduce the amount of disk space used by the packaged package files. The most common packaging command in Linux is tar. The most commonly used compression commands ar
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
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
Linux Unzip the tar commandTar-zcvpf/backup/home.tar.gz/home with file attribute permission compressionTar cvpft/backup/config.tar/backup/configlist compression According to the list in the Configlist filetar-zxvpf/software/home.tar.gz with file attribute permissions decompressiontar [-cxtzjvfppn] files and directories
Compression Decompression Command Introduction. GZ compression to gzip files. bz2 compression to bzip2 file. tar package files, merging multiple files into one directory. tar.gz first into a tar package, then compressed to gzip file. tar.bz2 first into a tar package, then co
, 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
Unzip
Tar
Common Decompression Commands: TAR-ZXVPF : Unzip TAR-ZCVPF: Compression # tar [-j|-z] [CV] [-F established file name ] filename ... Packaging and C
deleted.(3) Example: interactively delete files in the current directory test and example.[Email protected]/root] #rm-I test exampleRemove test? YRemove example? NThe file test will be deleted.3. MV Command (like a combination of Ren and move under Dos)(1) General format: MV [option] source file destination file(2) Note: This command is used to move a
Tar is commonly used on Linux packaging, compression, compression tools, he has a lot of parameters, folding only to enumerate the commonly used compression and decompression parametersParameters:-c:create set up the parameters of compressed archives;-X: Extracting parameters of compressed archives;-Z: Whether to use gzip compression;-V: Files are displayed during compression;-F: The top document name, immediately after F to answer the
displayed when the identification results are listed.-C Displays the instruction execution process in detail to facilitate troubleshooting or analysis of the execution of the program.-f-L Displays the category of the file that the symbolic connection points to directly.-m-V Displays version information.-Z try to interpret the contents of the compressed file.2. Re-get the
Compression and decompression1 gzipGzip test.py #压缩后为test. py.gzgzip-d test.py.gz #解压文件2 bzip2Bzip2 test.py #压缩后为test. py.bz2bzip2-d test.py.gz #解压文件3 tarOptions content-C Create a packaged file-R append file to packaged document-T list packaged content-f Specifies the package name-j compressed by bzip2 format after packaging-Z Compression after packaging with gzip format-X Unpacking
Tar zxvf phddns_raspberry.tgzTar default unzip to current directoryParameters:At least one of the following parameters must be run when you run tar-A,--catenate,--concatenateMerging an archive with an existing archive-C,--createCreate a new archive-D,--diff,--compareCompare the differences between the archive and the current
Tags: packaging tar bulk packagingPackagedThe list of files to be packaged is put into c_list.txt, and if it is a database file, you can use show tables; commands to list the table names.#!/bin/bash# Bulk Package for I in ' cat c_list.txt ' do tar-jcvf $i. tar.bz2 $i. frm $i. MYD $i. MYI DoneBatch decompression:#!/bin/bash for i in ' ls./*.tar.gz ' does
The following information occurs when the Ubuntu14.04 system in the virtual machine is installed to install VM Tools:Make sure you are logged on to the client operating system. Mount the CD drive boot terminal in the client, unzip the installer using tar, and then perform vmware-insall.pl installation VMware Tools.The following are personal solutions.Solution steps:1. Go to the
Encountered the database can not find the cause of the problem, can only find the log, find the log when the old log is compressed, only to try to extract the A large amount of data, only in production decompression, and then to find The file name is *.tar.gz, and your blog has previously documented the decompression method: Http://www.cnblogs.com/garinzhang/archive/2013/04/23/3037147.html Use TAR–ZXVF *.t
] ~]# tar--helpUsage:tar [OPTION ...] [FILE] ...GNU ' tar ' saves many files together into a single tape or disk archive, and canRestore individual files from the archive.Examples:TAR-CF Archive.tar Foo Bar # Create Archive.tar from Files foo and bar. Create an archiveTAR-TVF Archive.tar # List all files in Archive.tar verbosely. Listing all Documentstar-xf Archi
Common commands:Zip:Package: Zip something.zip Something (directory please add-r parameter)Unpacking: Unzip somethingSpecify path:-d parameterTarPackage: TAR-ZCVF Something.tar SomethingUnpacking: TAR-ZXVF Something.tarSpecify path:-C parameterCompression/decompression tools commonly used on Linux,Main explanation Zip,rar,tarBefore you talk about the compression
to unzip the file, but not include the specified file file.-V View the compressed Files directory, but do not press.The-t test file has no damage, but does not understand the pressure.The-D directory unlocks the compressed file t
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.