tar

tar 文件:

tar cvf xxx.tar dira/ dirb/ filea/  #重新制作xxx.tar,原有内容被覆盖

tar uvf xxx.tar fileb                  #在原xxx.tar 上增加fileb

tar cvf xxx.tar -C /usr/include ./  # -C causes tar to perform a chdir() to directory. Subsequent file and -C directory arguments are relative to directory. This allows multiple directories not related by a close or common parent to be archived using short relative path names.

 

解tar包:

tar xvf xxx.tar

 

显示tar包的内容:

tar tvf xxx.tar

posted @ 2015-01-21 12:48  夏叔叔  阅读(463)  评论(0编辑  收藏  举报