ouch
stands for Obvious Unified Compression Helper, it's a CLI tool to compress and decompress files.
Use the decompress
subcommand and pass the files.
```sh
ouch decompress a.zip
ouch decompress a.zip b.tar.gz c.tar
ouch d a.zip ```
You can redirect the decompression results to another folder with the -d/--dir
flag.
```sh
ouch decompress summer_vacation.zip -d pictures ```
Use the compress
subcommand, pass the files and the output file at the end.
```sh
ouch compress 1 2 3 4 archive.zip
ouch c file.txt file.zip
ouch compress * everything.tar.gz.xz.bz.zst.gz.gz.gz.gz.gz ```
ouch
checks for the extensions of the output file to decide which formats should be used.
Compiled for x86_64
on Linux, Mac OS and Windows, run with curl
or wget
.
| Method | Command |
|:---------:|:-----------------------------------------------------------------------------------|
| curl | curl -s https://raw.githubusercontent.com/ouch-org/ouch/master/install.sh \| sh
|
| wget | 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.
| Format | .tar | .zip | .bz, .bz2 | .gz | .xz, .lz, .lzma | .zst | |:-------------:|:----:|:----:|:---------:| --- |:---------------:| --- | | Supported | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
And the aliases: tgz
, tbz
, tbz2
, txz
, tlz
, tlzma
, tzst
.
Formats can be chained (ouch
keeps it fast):
.gz.xz.bz.zst
.tar.gz.xz.bz.zst
.tar.gz.gz.gz.gz.xz.xz.xz.xz.bz.bz.bz.bz.zst.zst.zst.zst
ouch
is 100% made out of voluntary work, any small contribution is welcome!