mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 10:45:05 +01:00
Add cheat for gzip
This commit is contained in:
parent
603bc360c0
commit
57876ed0e7
14
cheat/cheatsheets/gzip
Normal file
14
cheat/cheatsheets/gzip
Normal file
@ -0,0 +1,14 @@
|
||||
# To create a *.gz compressed file
|
||||
gzip test.txt
|
||||
|
||||
# To create a *.gz compressed file to a specific location using -c option (standard out)
|
||||
gzip -c test.txt > test_custom.txt.gz
|
||||
|
||||
# To uncompress a *.gz file
|
||||
gzip -d test.txt.gz
|
||||
|
||||
# Discplay compression ratio of the compressed file using gzip -l
|
||||
gzip -l *.gz
|
||||
|
||||
# Recursively compress all the files under a specified directory
|
||||
gzip -r documents_directory
|
Loading…
Reference in New Issue
Block a user