Detailed description of tar decompression command parameters in linux

Source: Internet
Author: User
The parameters of the tar decompression command in linux are described in detail. the tar program is used to store or expand the tar archive file. Archive files can be stored on disks or as common files. Tar requires parameters. the optional parameters are A, c, d, r, t, u, and x. You must first use tar...
The parameters of the tar decompression command in linux are described in detail. the tar program is used to store or expand the tar archive file. Archive files can be stored on disks or as common files. Tar requires parameters. optional parameters include A, c, d, r, t, u, and x. You must specify at least one parameter for tar before using tar, you must specify the file or directory to process. If a directory is specified, all subdirectories under the directory will be added to the archive. Example of www.2cto.com application: 1) expand abc.tar.gz use command: tar xvzf abc.tar.gz expand abc.tar use command: tar xvf abc.tar 2) save the man directory and its subdirectories in the current directory as archive man.tar tar cf man.tar. the/man parameter indicates that you must have at least one of the following parameters to run tar before running-A, -- catenate, -- concatenate combines an archive with an existing Archive-c, -- create a new archive-d, -- diff, -- compare the differences between the archive and the current file -- delete deletes-r from the archive, -- append attaches to the end of the archive-t, -- list lists the directories of files in the archive-u, -- update only attaches newer files to the archive-x, -- extract, -- get expand file from archive www.2cto.com other parameters -- atime-pr Eserve does not change the access time of the dump file-B, -- block-size N specifies the block size to Nx512 bytes (missing time N = 20)-B, -- read-full-blocks (???!!!) -C, -- directory DIR to the specified directory -- checkpoint displays the directory name-f, -- file [HOSTNAME:] when reading the archive F specifies the archive or device (/dev/rmt0 by default) -- force-local forces the use of local archive, even if the clone-F, -- info-script F -- new-volume-script F uses the script F (implicit-M)-G at the end of each disk, -- incremental creates a backup-g in the old GNU format, -- listed-incremental F creates a new GNU backup-h, -- dereference does not dump dynamic links, dump files pointed to by dynamic links. -I, -- ignore-zeros www.2cto.com ignore the 0-byte block in the archive (usually indicates the end of the file) -- ignore-failed-read marks 0 in the unreadable file and then exits ??? -K, -- keep-old-files to save the existing files; do not overwrite-K when expanding from the archive; -- starting-file F starts from the archive file F-l, -- one-file-system create an archive in the local file system-L, -- tape-length N is paused after N * 1024 bytes are written, waiting for disk replacement-m, -- modification-time when a file is recovered from an archive, a multi-volume archive is created without the new time tag-M, -- multi-volume to store-N in several disks, -- after-date DATE, -- newer DATE only stores files with newer time-o, -- old-archive, and -- portability are archived in V7 format, without ANSI-O, -- to-stdout expands the file to the standard output-p, -- same-permissions, -- preserve-permissions -P, -- absolute-paths do not remove '/' from the file name -- preservelike-p-s and-p-s are similar to-R, -- record-number: displays the number of records in the archive at the same time. -- remove-files www.2cto.com deletes the source file-s, -- same-order, -- preserve-order ??? -- Expand same-owner to make all files belong to the same owner-S, -- sparse efficient processing-T, -- files-from F: get the name of the file to be expanded or created from the file -- null: read the name of an empty ending file, disable-C -- totals display total number of bytes written with the -- create parameter-v, -- verbose detailed display of the processed file-V, -- label NAME specifies the volume label for the Archive -- version displays the version number of the tar program-w, -- interactive, -- confirmation. each operation requires confirmation-W, -- verify is verified after writing data to the archive -- exclude FILE does not include the specified FILE-X, -- exclude-from FILE read from the specified FILE list of files not included-y, -- bzip2, -- bunzip2 www.2cto.com use bzip2 for archive compression or decompression-Z, -- compress, -- uncompress use compress for archive compression or decompression-z, -- gzip, -- ungzip: use gzip to compress or decompress the archive. -- use-compress-program: use PROG to compress or decompress the archive. (The PROG must accept the-d parameter) -- block-compress: to facilitate disk storage, archive data by block record-[0-7] [lmh] specifying the drive and density [high and low] from java tutorial network
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.