This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux-commandline-tips [2020/01/03 12:55] serbizadmin [PHP] |
linux-commandline-tips [2020/08/29 23:47] (current) serbizadmin [Find Stuff] |
||
---|---|---|---|
Line 15: | Line 15: | ||
find . -type f -printf '%T@ %P\n' | sort -n | awk ' | find . -type f -printf '%T@ %P\n' | sort -n | awk ' | ||
</ | </ | ||
+ | * show files greater than 1G | ||
+ | < | ||
+ | du -h * | grep ' | ||
+ | </ | ||
+ | Change ' | ||
====== Differences====== | ====== Differences====== | ||
* between files, showing side by side | * between files, showing side by side | ||
Line 44: | Line 49: | ||
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 |