mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 00:48:29 +01:00
commit
426b0aaa0d
1 changed files with 17 additions and 0 deletions
17
cheat/cheatsheets/gzip
Normal file
17
cheat/cheatsheets/gzip
Normal file
|
@ -0,0 +1,17 @@
|
|||
# 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
|
||||
|
||||
# Display 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
|
||||
|
||||
# To create a *.gz compressed file and keep the original
|
||||
gzip < test.txt > test.txt.gz
|
Loading…
Reference in a new issue