linux command ------ tar

 

-c: compress archiveside

-x:decompress archivesorm

-t:check archivesip

-z:whether it has the attribute of gzip at the same time?in other words,whether it needs gzip to compress or decompress. The general format is xx.tar.gz or xx. tgzci

-j:whether it has the attribute of bzip2 at the same time?in other words,whether it needs bzip2 to compress or decompress. The general format is xx.tar.bz2it

-f:use the archives name,the back of "-f" is the name directlyform

-v:show all the procedureclass

-c:compress the files to a specific foldersed

for examplefile

compress:tar -jcv -f "filename.tar.bz2" "to be compressed files or folders"im

check:tar -jtv -f "filenma.tar.bz2"

decompress:tar -jxv -f "filename.tar.bz2" -C "the path of decompress"

相關文章
相關標籤/搜索