tar 文件:orm
tar cvf xxx.tar dira/ dirb/ filea/ #從新制做xxx.tar,原有內容被覆蓋ip
tar uvf xxx.tar fileb #在原xxx.tar 上增長filebform
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.file
解tar包:di
tar xvf xxx.tar文件
顯示tar包的內容:co
tar tvf xxx.tararguments