From d324e3b42d37b593e062db5a14f319468bdb84c1 Mon Sep 17 00:00:00 2001 From: Joshua Pickard Date: Fri, 28 Jul 2023 16:24:20 +0000 Subject: [PATCH] Update 'README.md' --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 5366a69..b71e0ef 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,24 @@ sudo cryptsetup luksClose my_encrypted_volume ## Recursively unzip ```while [ "`find . -type f -name '*.zip' | wc -l`" -gt 0 ]; do find -type f -name "*.zip" -exec unzip -- '{}' \; -exec rm -- '{}' \;; done``` +## tar.bz2 + +Let’s say you have an extra-large directory that you want to compress as much as possible. +If tar.gz results in an over-sized file, try using tar.bz2 instead. Note that this option does take a little +longer. + +This archive method adds only one new option: -j, as shown in the following example: + +`tar -jcvf .tar.bz2 /directory/to/compress` +OR +`tar -jcvf .tar.bz2 ‘*.jpg’` + +Again, to extract a .tar.bz2 file, switch the -c for -x, as shown in the following examples: + +`tar -jxvf .tar.bz2` +OR +`tar -jxvf .tar.bz2 -C /directory/to/extract/to/` + ## Merge PDF files #### Ghostscript