navi: Migration from Nextcloud
This commit is contained in:
20
navi/compression.cheat
Normal file
20
navi/compression.cheat
Normal 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
|
||||
Reference in New Issue
Block a user