moodLearning Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux-commandline-tips [2020/07/15 17:22]
serbizadmin [Compression]
linux-commandline-tips [2020/07/15 17:29] (current)
serbizadmin [Compression]
Line 48: Line 48:
 <​code>​ <​code>​
 time xz -6ve -k --threads=0 <​filename>​ time xz -6ve -k --threads=0 <​filename>​
 +</​code>​
 +  * compress multiple files
 +<​code>​
 +xz file1.txt file2.txt file3.txt
 +</​code>​
 +  * decompress
 +<​code>​
 +xz -d file.txt.xz
 +unxz file.txt.xz
 </​code>​ </​code>​
   * test integrity ​   * test integrity ​
Line 53: Line 62:
 xz -tv <​filename>​.tar.xz xz -tv <​filename>​.tar.xz
 </​code>​ </​code>​
 +  * concatenate multiple files
 +<​code>​
 +xzip -c file1.txt > files.xz
 +xzip -c file2.txt >> files.xz
 +</​code>​
 +  * concatenate,​ less, more, grep multiple files
 +<​code>​
 +xzcat test.txt.xz
 + test
 + ​example
 + text
 +xzgrep exa test.txt.xz
 + ​example
 +</​code>​
 +
 ====== PHP====== ====== PHP======
   * View php config   * View php config