From cce93b009944027513ae1bf84a83878d37c15ee9 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 26 Jan 2022 18:52:41 +0100 Subject: Updates to archival guide and renamed yesterday's article --- how_to_archive_with_posix_tar_cpio_and_pax.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'how_to_archive_with_posix_tar_cpio_and_pax.html') 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 28c3878..09d1512 100644 --- a/how_to_archive_with_posix_tar_cpio_and_pax.html +++ b/how_to_archive_with_posix_tar_cpio_and_pax.html @@ -30,7 +30,7 @@ the exact same order, with tar being at 8th place overall, cpio at 52nd, and pax least popular one, so I'll explain shortly how to use each of them in your usual Linux distribution while keeping in mind what POSIX had to tell us back in the day. -

tar

+

How to Archive With POSIX tar utility

Like I've already mentioned tarballs are the most popular. Not only that, they are commonly described as the easiest to use, although the interface is something that you can find jokes about. All operations on tarballs are handled via single tar utility.

@@ -52,7 +52,7 @@ $ tar cf ../archive.tar a_file a_directory include in the archive)
a_file a_directory
Files to include in the archives -

Now that you have an archive, you can see it's content:

+

Now that you have an archive, you can see its content:

 $ tar tf ../archive.tar
 a_file
@@ -77,7 +77,7 @@ default behaviour if no archive file is provided at all.
 and u 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.
 
-

cpio

+

How To Archive With POSIX cpio utility

Heading off from the usual routes we encounter cpio. It's a more frequent sight than pax, but it still is quite niche compared to tar's omnipresence. Frankly, I like this one the most because of the way it handles input of file lists. Sadly, this also makes it slightly bothersome to use. @@ -140,7 +140,7 @@ $ ls ../destination a_directory a_file

-

pax

+

How to Archive With POSIX pax utility

Finally, at the destination! This one lives up to the name of this post as it's still part of POSIX. The fun part is that you probably don't even have it installed, but don't worry, I didn't have it until like two days ago. It truly feels like a compromise forced on you and your siblings by your parents. Jokes aside, I actually started to like it, -- cgit v1.1