x zuz ​

This module supports multiple decompression formats such as tar, gz, xz, 7z, zst, zip, bz, Z, and rar(Decompression only). It prioritizes using system software, but if unavailable, it will automatically download the necessary software (7zip, zstd, etc.).

x zuz - Compress or Decompress file

TIP Since compression and decompression are commonly used, x-cmd also provides two aliases: x zuz z -> x z

-> x zuz uz -> x uz

Package the test folder into a file named test in .zip format

sh x z test.zip test

Package the test folder into a file named test in .7z format

sh x z test.7z test

Package the test folder into a file named test in .tar.gz format

sh x z test.tar.gz test

Extract the test.tar.gz folder to the current directory

sh x uz test.tar.gz

Extract the test.tar.gz folder to the current directory and delete the test.tar.gz original file

sh x uzr test.tar.gz

Lists the files contained inside the test.tar.gz file

sh x zuz ls test.tar.gz

Package the test.tar folder into a file named test.tar.gz

sh x z -1 test.tar.gz test.tar

Decompress the test.tar.gz to single tar file as test.tar

sh x uz -1 test.tar.gz

Decompress the test.txt.gz to single tar file as txt.abc

sh x uz -1 test.txt.gz

Sub Commands ​

x zuz z ​

Compress file

Usage :

sh x zuz z | compress < # 1> < # n >

Arguments :

Argument Description #1 The compressed file name and file format #n The destination files or folders that needs to be compressed

x zuz uz ​

Decompress file

Usage :

sh x zuz uz | decompress < # 1>

Arguments :

Argument Description #1 The package that needs to be decompressed

x zuz uzr ​

Decompress file then remove the original file

Usage :

sh x zuz uzr < # 1>

Arguments :

Argument Description #1 The package that needs to be decompressed

x zuz ls ​

List compress inside file

Usage :

sh x zuz ls < # 1>

Arguments :

Argument Description #1 The package that needs to be viewed