> For the complete documentation index, see [llms.txt](https://kashz.gitbook.io/kashz-jewels/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kashz.gitbook.io/kashz-jewels/tricks/archive-unarchive.md).

# archive, unarchive

## archive

```bash
zip FILE.zip FILE1 FIL2

tar -zcvf FILE.tar.gz DIR/
# -z: gzip file
# -v: verbose
# -c: create
# -f: file
```

## unarchive

```bash
unzip FILE.zip

unrar x FILE.rar

gzip -d FILE.gz
gunzip FILE.gz

tar -zvxf FILE.tar.gz
# -z: gzip file
# -v: verbose
# -x: extract
# -f: file

7z x FILE
# x: extract
```
