|
|
|
@ -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 <archive name>.tar.bz2 /directory/to/compress` |
|
|
|
OR |
|
|
|
`tar -jcvf <archive name>.tar.bz2 ‘*.jpg’` |
|
|
|
|
|
|
|
Again, to extract a .tar.bz2 file, switch the -c for -x, as shown in the following examples: |
|
|
|
|
|
|
|
`tar -jxvf <archive name>.tar.bz2` |
|
|
|
OR |
|
|
|
`tar -jxvf <archive name>.tar.bz2 -C /directory/to/extract/to/` |
|
|
|
|
|
|
|
## Merge PDF files |
|
|
|
|
|
|
|
#### Ghostscript |
|
|
|
|