Skip to content

Commit

Permalink
➕ add zip compression
Browse files Browse the repository at this point in the history
  • Loading branch information
devmount authored Dec 1, 2022
1 parent 4b79f5d commit a9b75d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sheets/bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@

## Compression

Create a .tar.gz file
Create a `.tar.gz` or `.zip` file

```bash
tar -czvf file.tar.gz directory-to-compress/
zip -r file.zip directory-to-compress/
```

Extract contents of a .tar.gz file
Extract contents of a `.tar.gz` or `.zip` file

```bash
tar -zxvf file.tar.gz
unzip file.zip
```

## GPG
Expand Down

0 comments on commit a9b75d8

Please sign in to comment.