navi: Migration from Nextcloud

This commit is contained in:
2020-09-12 23:47:55 +02:00
committed by Robin-Charles GUIHENEUF
parent fa95869fae
commit 48faf71120
5 changed files with 133 additions and 0 deletions

20
navi/compression.cheat Normal file
View File

@@ -0,0 +1,20 @@
% 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>
# Compress file and appends .gz to its name
gzip <path>
# Decompress compressed file
gzip -d <gz_file>
$ path: ls
$ tar_file: ls *.{tar,tar.*} 2>/dev/null
$ gz_file: ls *.gz