Linux ??????????鵵
???????????? ???????[ 2015/5/8 13:56:03 ] ??????????????
??????????
?????????????????? gzip??bzip2 ???
????gzip ????
??????????
????gzip [ -acdfhlLnNrtvV19 ] [-S suffix] [ name ... ]
???????????
????-c --stdout --to-stdout
?????????????д????????????????????????????
????-d --decompress --uncompress
?????????
????-f --force
??????????
????-h --help
??????????????
????-l --list
?????г???????????????
????-L --license
????????汾???????
????-q --quiet
????????????????
????-r --recursive
??????饗?????
????-S .suf --suffix .suf
?????????????????? .suf????????? .gz
????-t --test
??????????????????????
????-v --verbose
??????????????????????
????-V --version
????????汾???????
????-# --fast --best
?????趨???????# ??????Χ? 1~9??# ?????????????????????Ч????á??????? 6??
???????
????a) ??????
????huey@huey-K42JE:~/huey/linux/cmdline$ gzip foo
????b) ??????
????huey@huey-K42JE:~/huey/linux/cmdline$ gzip -d foo
????huey@huey-K42JE:~/huey/linux/cmdline$ gunzip foo.tar
????c) ?г???????????????
????huey@huey-K42JE:~/huey/linux/cmdline$ gzip -l foo.gz
????compressed uncompressed ratio uncompressed_name
????4150 26134 84.2% foo
????d) ??????????
????huey@huey-K42JE:~/huey/linux/cmdline$ gzip -v9 foo
????foo: 84.9% -- replaced with foo.gz
????e) ????????????????????????
????huey@huey-K42JE:~/huey/linux/cmdline$ date > foo
????huey@huey-K42JE:~/huey/linux/cmdline$ gzip foo
????huey@huey-K42JE:~/huey/linux/cmdline$ gzip -dc foo.gz
????Thu May 7 17:10:35 CST 2015
???????????
????gunzip - ??????????? gzip -d
????zless - ?????????????zless test.gz ???? gunzip -c | less
????zcat - ?????? zless??zcat test.gz ???? gunzip -c | cat
????bzip2 ????
????bzip2 ?? gzip ???????????????ò??????????????????и????????????????????????????????????????????£????÷??? gzip ?????????? bzip2 ??????????? .bz2 ??????
??????????
????bzip2 [ -cdfkqstvzVL123456789 ] [ filenames ... ]
???????????
????-c --stdout
?????????????????????????????
????-d --decompress
???????????
????-z --compress
????-d ????????????????
????-t --test
??????????????????????
????-f --force
??????????????????
????-k --keep
?????????????????б???????
????-s --small
??????????? ??????????????????????????
????-q --quiet
????????????????
????-v --verbose
??????????????????????
????-L --license -V --version
????????汾???????
????-1 (or --fast) to -9 (or --best)
???????????????????????????????????Ч????á?
???????
????a) ??????
????huey@huey-K42JE:~/huey/linux/cmdline$ bzip2 foo
????b) ????????
????huey@huey-K42JE:~/huey/linux/cmdline$ bunzip2 foo.bz2
???????????
????bunzip2 - ??????????? bzip2 -d
????bzcat - ????????????????????????bzcat test.bz2 ???? bunzip2 -c test.bz2 | cat
????bzip2recover - ??????????? bz2 ?????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11