Difference between revisions of "Tape Archive"
Jump to navigation
Jump to search
(→tar) |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
= tar = | = tar = | ||
Packs and compresses multiple files a tarball or writes to [[Magnetic Tape|magnetic tape]].</br> | Packs and compresses multiple files into a tarball or writes to [[Magnetic Tape|magnetic tape]].</br> | ||
== Use (BSD-Style)== | == Use (BSD-Style)== | ||
| Line 12: | Line 12: | ||
<code>z</code> de-/compress with gzip</br> | <code>z</code> de-/compress with gzip</br> | ||
<code>j</code> de-/compress with bzip</br> | <code>j</code> de-/compress with bzip</br> | ||
<code>p</code> preserve file permissions, default as root</br> | |||
<code>r</code> append files to the end of an existing uncompressed tarball</br> | |||
<code>u</code> append files to the end of an existing uncompressed tarball, if files are newer</br> | |||
<code>C</code> extract to a target directory</br> | |||
Latest revision as of 15:07, 24 February 2023
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
C extract to a target directory