summaryrefslogtreecommitdiff
path: root/how_to_archive_with_posix_tar_cpio_and_pax.html
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-08-11 21:46:06 +0200
committerAki <please@ignore.pl>2021-08-11 21:46:06 +0200
commita0f1fa71bd7777b7fad08add51b40ed9877a71e3 (patch)
tree87fb1dfbbfd8d89c6d4a7bf50879aae6c82dc417 /how_to_archive_with_posix_tar_cpio_and_pax.html
parentbfa4c0d559c43d83d2d07014e7b765a287a0c944 (diff)
downloadignore.pl-a0f1fa71bd7777b7fad08add51b40ed9877a71e3.zip
ignore.pl-a0f1fa71bd7777b7fad08add51b40ed9877a71e3.tar.gz
ignore.pl-a0f1fa71bd7777b7fad08add51b40ed9877a71e3.tar.bz2
Updated tar guide with link to ar and f- option
Diffstat (limited to 'how_to_archive_with_posix_tar_cpio_and_pax.html')
-rw-r--r--how_to_archive_with_posix_tar_cpio_and_pax.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/how_to_archive_with_posix_tar_cpio_and_pax.html b/how_to_archive_with_posix_tar_cpio_and_pax.html
index 998afb7..cd53a4b 100644
--- a/how_to_archive_with_posix_tar_cpio_and_pax.html
+++ b/how_to_archive_with_posix_tar_cpio_and_pax.html
@@ -13,7 +13,7 @@
<article>
<h1>How To Archive With POSIX tar, cpio and pax</h1>
-<p class="subtitle">Published on 2020-07-22 22:30:00+02:00
+<p class="subtitle">Published on 2020-07-22 22:30:00+02:00, last modified on 2021-08-11 21:35:00+02:00
<p>The usual answer to archive anything is <a href="https://www.gnu.org/software/tar/">tar</a>. As you may see I
intentionally linked to the GNU Tar. If you are a *BSD user then you use some other implementation. Both of them follow
and extend POSIX'es standard for tar utility. Or so you would think.
@@ -70,6 +70,9 @@ $ tar xf ../archive.tar
$ tar xf ../archive.tar a_file
</pre>
<p>This one will extract only <code>a_file</code> from the archive.
+<p>It's worth noting that you can pass <code>-</code> as argument to file option. This way the archive will be read from
+standard input or written to standard output depending on the operation. Good chunk of implementations assumes this as a
+default behaviour if no archive file is provided at all.
<p>That's pretty much it about tar. The are two more functions: <code>r</code> that adds new file to existing archive,
and <code>u</code> that first tries to update the file in archive if it exists and if it doesn't then it adds it. Note,
that the usual compression options are not available in POSIX, they are an extension.
@@ -231,8 +234,8 @@ all of those utilities have various implementations that are compliant to POSIX
don't get tricked by them. I find pax the most reliable of them as its "novelty" and the interface that was quite
"modern" from the start resulted in decently compliant implementations. Moreover, it includes nice things one may know
from both cpio and tar. Find a moment to check it out!
-<p>Let's pretend that <a href="https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ar.html">ar</a> doesn't exist.
-Thank you.</p>
+<p>Now, it's time for <a href="https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ar.html">ar</a>. And it so
+happens that a year or so later <a href="how_to_archive_with_posix_ar.html">I wrote about it</a>. Enjoy.</p>
<img src="how_to_archive_with_posix_tar_cpio_and_pax-3.png" alt="boo!">
</article>
<script src="https://stats.ignore.pl/track.js"></script>