Tape Archive

From 6bit.ch wiki
Revision as of 22:36, 28 November 2022 by Xbl (talk | contribs) (→‎tar)
Jump to navigation Jump to search

tar

Packs and compresses multiple files into a tarball or writes to magnetic tape.

Use (BSD-Style)

tar xf example.tar extract (x) tarball example.tar (f) to .
tar cf example.tar create (c) tarball example.tar (f) to .

Useful Flags

t list contents to stdout
v verbose output
z de-/compress with gzip
j de-/compress with bzip
p preserve file permissions, default as root
r append files to the end of an existing uncompressed tarball
u append files to the end of an existing uncompressed tarball, if files are newer