summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--how_to_archive_with_posix_tar_cpio_and_pax.html9
-rw-r--r--index.html2
2 files changed, 8 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>
diff --git a/index.html b/index.html
index ad2a122..1e15407 100644
--- a/index.html
+++ b/index.html
@@ -65,6 +65,8 @@ completely discard the concept of a keyboard.
</nav>
<section id="news">
<h2>Short Updates</h2>
+<p><strong><time>2021-08-11</time></strong>
+Minor updates to <a href="how_to_archive_with_posix_tar_cpio_and_pax.html">How To Archive With POSIX tar, cpio and pax</a>.
<p><strong><time>2021-07-26</time></strong>
Once again restructured index hierarchy.
<p><strong><time>2021-07-26</time></strong>