????????鵵
?????鵵?????????????????????????????????????鵵????????????????????????????????????????
????tar ????
??????????
????tar [OPTION...] [FILE]...
???????????
????-A?? --catenate?? --concatenate
??????? tar ??????鵵?????
????-c?? --create
?????????μ?鵵???
????-d?? --diff?? --compare
????????鵵???????????????
????--delete
??????鵵????????????????
????-r?? --append
?????????????鵵???
????-t?? --list
?????г??鵵?????????
????-u?? --update
??????????鵵??????μ????
????-x?? --extract?? --get
??????鵵???????????
???????
????a) ??foo1??foo2 ?? foo3 ?鵵?? foo.tar
????huey@huey-K42JE:~/huey/linux/cmdline$ tar cvf foo.tar foo1 foo2 foo3
????b) ???鵵?????????
????huey@huey-K42JE:~/huey/linux/cmdline$ tar tvf foo.tar
????-rw-rw-r-- huey/huey 26840 2015-05-07 19:28 foo1
????-rw-rw-r-- huey/huey 13047 2015-05-07 19:28 foo2
????-rw-rw-r-- huey/huey 348 2015-05-07 19:28 foo3
????c) ??鵵???????????
????huey@huey-K42JE:~/huey/linux/cmdline$ tar xvf foo.tar
????d) ??? foo4 ???鵵??? foo.tar
????huey@huey-K42JE:~/huey/linux/cmdline$ tar rf foo.tar foo4
????e) ??鵵??? foo.tar ????? foo2
????huey@huey-K42JE:~/huey/linux/cmdline$ tar -f foo.tar --delete foo2
????f) ?鵵???????gzip?????
????huey@huey-K42JE:~/huey/linux/cmdline$ tar zcvf foo.tar.gz foo
????g) ????? .tar.gz ???
????huey@huey-K42JE:~/huey/linux/cmdline$ tar zxvf foo.tar.gz
????h) ?鵵???????bzip2?????
????huey@huey-K42JE:~/huey/linux/cmdline$ tar jcvf foo.tar.bz2 foo
????i) ????? .tar.bz2 ???
????huey@huey-K42JE:~/huey/linux/cmdline$ tar jxvf foo.tar.bz2
????zip ????
????zip ????????????????????????鵵??????? Linux ???У?gzip ????????????????? bzip2 ??????? Linux ?????????? zip ?????? Windows ???????????????????????????????鵵?????
??????????
????zip [-aABcdDeEfFghjklLmoqrRSTuvVwXyz!@$] [--longoption ...]  [-b path] [-n suffixes] [-t date] [-tt date] [zipfile [file ...]]  [-xi list]
????unzip [-Z] [-cflptTuvz[abjnoqsCDKLMUVWX$/:^]] file[.zip] [file(s) ...]  [-x xfile(s) ...] [-d exdir]
???????
????a) ?? foo1??foo2 ?? foo3 ?鵵????? foo.zip
????huey@huey-K42JE:~/huey/linux/cmdline$ zip foo.zip foo1 foo2 foo3
????b) ?鵵?????
????huey@huey-K42JE:~/huey/linux/cmdline$ zip -r commons-beanutils-1.9.2.zip commons-beanutils-1.9.2
????c) ????? .zip ???
????huey@huey-K42JE:~/huey/linux/cmdline$ unzip commons-beanutils-1.9.2.zip