mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 19:43:06 +00:00
a0c5a6293b
Fixes #137 ![Demo](https://user-images.githubusercontent.com/3226564/67512211-b2e99a00-f66e-11e9-8ffe-09f30cb54599.png)
24 lines
424 B
Text
24 lines
424 B
Text
% compression
|
|
|
|
# Create a tar containing files
|
|
tar cf <name>.tar <files>
|
|
|
|
# Extract the files from a tar
|
|
tar xf <tar_file>
|
|
|
|
# Create a tar with Gzip compression
|
|
tar czf <name>.tar.gz <files>
|
|
|
|
# Extract a tar using Gzip
|
|
tar xzf <targz_file>
|
|
|
|
# Compress file and appends .gz to its name
|
|
gzip <path>
|
|
|
|
# Decompress compressed file
|
|
gzip -d <gz_file>
|
|
|
|
$ path: ls
|
|
$ tar_file: ls *.tar
|
|
$ targz_file: ls *.tar.gz
|
|
$ gz_file: ls *.gz
|