This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
linux-commandline-tips [2020/06/13 15:10] 127.0.0.1 external edit |
linux-commandline-tips [2020/07/15 09:29] serbizadmin [Compression] |
||
---|---|---|---|
Line 44: | Line 44: | ||
shopt -s extglob</ | shopt -s extglob</ | ||
\\ | \\ | ||
+ | ====== Compression====== | ||
+ | * lossless, multi-thread compression: | ||
+ | < | ||
+ | time xz -6ve -k --threads=0 < | ||
+ | </ | ||
+ | * compress multiple files | ||
+ | < | ||
+ | xz file1.txt file2.txt file3.txt | ||
+ | </ | ||
+ | * decompress | ||
+ | < | ||
+ | xz -d file.txt.xz | ||
+ | unxz file.txt.xz | ||
+ | </ | ||
+ | * test integrity | ||
+ | < | ||
+ | xz -tv < | ||
+ | </ | ||
+ | * concatenate multiple files | ||
+ | < | ||
+ | xzip -c file1.txt > files.xz | ||
+ | xzip -c file2.txt >> files.xz | ||
+ | </ | ||
+ | * concatenate, | ||
+ | < | ||
+ | xzcat test.txt.xz | ||
+ | test | ||
+ | | ||
+ | text | ||
+ | xzgrep exa test.txt.xz | ||
+ | | ||
+ | </ | ||
+ | |||
====== PHP====== | ====== PHP====== | ||
* View php config | * View php config |