Hi, Someone - https://www.youtube.com/watch?v=NQ5uD5x8vzg - mentioned that our man page for tar(1) doesn't have an extract example, so I thought it would be good to add a simple one which highlights a common use case.
OK? Index: tar.1 =================================================================== RCS file: /cvs/src/bin/pax/tar.1,v retrieving revision 1.64 diff -u -p -r1.64 tar.1 --- tar.1 31 Mar 2022 17:27:14 -0000 1.64 +++ tar.1 2 Aug 2023 21:47:12 -0000 @@ -359,6 +359,13 @@ Note that the glob pattern has been quot .Pp .Dl $ tar tvzf backup.tar.gz '*.jpeg' .Pp +Verbosely extract an archive, called +.Pa foo-backup.tar.gz , +to the folder +.Pa /var/foo : +.Pp +.Dl $ tar xzvf foo-backup.tar.gz -C /var/foo +.Pp For more detailed examples, see .Xr pax 1 . .Sh DIAGNOSTICS