29 lines
594 B
Markdown
29 lines
594 B
Markdown
|
|
||
|
+++
|
||
|
date="2022-12-24"
|
||
|
author="spanskiduh"
|
||
|
title="Compression"
|
||
|
description="click to read Compression"
|
||
|
+++
|
||
|
|
||
|
|
||
|
# Compression
|
||
|
### Tar archives
|
||
|
|
||
|
- `tar -cf file.tar dir/` -archive using tar, extract `tar -xvf file.tar`
|
||
|
- `sudo tar -czf file.tar.gz dir/` gzip dir
|
||
|
|
||
|
### Gzip
|
||
|
- `gunzip archive.gz`
|
||
|
|
||
|
### Zip archives
|
||
|
|
||
|
- `unzip -x <file.zip> -d <destination_dir>` - unzip
|
||
|
-`zip -r {filename.zip} {foldername}` -zip
|
||
|
- ` zip -r assignment3 assignment3 -x assignment3/images/** -x assignment3/instructions.pdf` - exclude
|
||
|
- ` unzip -l assignment3.zip` - list
|
||
|
|
||
|
### 7zip archives
|
||
|
- `7z x <file.7z>` - unzip
|
||
|
|