Linux unzip command (TAR)

Source: Internet
Author: User

Tar zxvf phddns_raspberry.tgz

Tar default unzip to current directory

Parameters:

At least one of the following parameters must be run when you run tar

-A,--catenate,--concatenate

Merging an archive with an existing archive

-C,--create

Create a new archive

-D,--diff,--compare

Compare the differences between the archive and the current file

--delete

Remove from archive

-R,--append

Append to end of archive

-T,--list

Lists the directories of files in the archive

-U,--update

Attach only newer files to the archive

-X,--extract,--get

To expand a file from an archive

Other parameters

--atime-preserve

Do not change the access time of the dump file

-B,--block-size N

Specify a block size of Nx512 bytes (default n=20)

-B,--read-full-blocks

Reorganization block (???!!!) when read

-C,--directory DIR

Go to the specified directory

--checkpoint

Show directory name when reading archive

-F,--file [hostname:]f

Specify an archive or device (default is/dev/rmt0)

--force-local

Force local archive, even if a clone exists

-F,--info-script F--new-volume-script F

Use script F (implied-m) at the end of each disk

-G,--incremental

Build a backup of the old GNU format

-G,--listed-incremental F

Create a backup of the new GNU format

-H,--dereference

Does not dump dynamic links, dumps the files that the dynamic links point to.

-I.,--ignore-zeros

Ignores 0-byte blocks in the archive (usually means end of file)

--ignore-failed-read

Make 0 mark in non-readable file before exiting???

-K,--keep-old-files

Save an existing file, and do not overwrite it when expanded from the archive

-K,--starting-file F

Start with the archive file F

-L,--one-file-system

Create an archive in the local file system

-L,--tape-length N

Pause after writing n*1024, wait for disk replacement

-M,--modification-time

When recovering files from an archive, do not use the new Time label

-M,--multi-volume

Create a multi-volume archive to store on several disks

-N,--after-date date,--newer date

Only files with newer time are stored

-O,--old-archive,--portability

Archive in V7 format, without ANSI format

-O,--to-stdout

To expand a file to standard output

-P,--same-permissions,--preserve-permissions

Expand All Protection information

-P,--absolute-paths

Do not remove the '/' from the file name

--preserve

Like-p-S

Similar to-p-s

-R,--record-number

Displays the number of records in the archive while displaying information

--remove-files

Delete a source file after you create an archive

-S,--same-order,--preserve-order

???

--same-owner

Expand to make all files belong to the same owner

-S,--sparse

Efficient processing

-T,--files-from F

Get the file name you want to expand or create from your files

--null

Read null-terminated file name, so-C fails

--totals

Displays the total number of bytes written with the--create parameter

-V,--verbose

Detailed display of processed files

-V,--label NAME

Assign a volume label to an archive

--version

Displays the version number of the TAR program

-W,--interactive,--confirmation

Each operation requires confirmation

-W,--verify

Verify after writing to archive

--exclude FILE

Do not include the specified file

-X,--exclude-from FILE

Reads a list of files that you do not want to include from the specified file

-Y,--bzip2,--bunzip2

Compress or decompress an archive with bzip2

-Z,--compress,--uncompress

Compress or decompress an archive with compress

-Z,--gzip,--ungzip

Compress or decompress an archive with gzip

--use-compress-program PROG

Compress or decompress the archive with PROG (PROG need to accept the-D parameter)

--block-compress

Archive by Block records for easy disk storage

-[0-7][LMH]

Specify drive and density [high school low]

Linux unzip command (TAR)

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.