ouch
stands for Obvious Unified Compression Helper, and works on Linux, Mac OS and Windows.
It is a CLI tool to compress and decompress files that aims on ease of usage.
Run ouch
and pass compressed files as arguments.
```sh
ouch decompress a.zip
ouch d a.zip
ouch decompress a.zip b.tar.gz ```
You can redirect the decompression results to a folder with the -o/--output
flag.
```sh
ouch decompress a.zip -o pictures ```
Use the compress
subcommand.
Accepts multiple files and folders, the last argument shall be the output file.
```sh
ouch compress 1 2 3 4 archive.zip
ouch c 1 2 3 4 archive.zip
ouch compress videos/ meme.mp4 videos.tar.gz
ouch compress file.txt compressed.gz.xz.bz.zst
ouch compress * files.zip ```
ouch
checks for the extensions of the output file to decide which formats should be used.
Download the script with curl
and run it.
sh
curl -s https://raw.githubusercontent.com/ouch-org/ouch/master/install.sh | sh
Or with wget
.
sh
wget https://raw.githubusercontent.com/ouch-org/ouch/master/install.sh -O - | sh
The script will download the latest binary and copy it to /usr/bin
.
For compiling, check the wiki guide.
| | .tar | .zip | .bz, .bz2 | .gz | .xz, .lz, .lzma | .zst | |:-------------:|:----:|:----:|:---------:| --- |:---------------:| --- | | Decompression | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | Compression | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Note that formats can be chained:
- .tar.gz
- .tar.xz
- .tar.gz.xz
- .tar.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.lz.lz.lz.lz.lz.lz.lz.lz.lz.lz.bz.bz.bz.bz.bz.bz.bz
- .gz.xz
- etc...
ouch
is 100% made out of voluntary work, any small contribution is welcome!