用来打包以供压缩上传:
tar [必要参数] [选择参数] [文件]
必要参数:
可选参数:
# 将 fileName 打包成 tarPackageName tar 包
tar -cf tarPackageName.tar fileName
(注: tar 是打包,不是压缩!)
压缩: gzip FileName
压缩: tar -zcvf FileName.tar.gz DirName
压缩: bzip2 -z FileName
压缩: tar -jcvf FileName.tar.bz2 DirName
压缩:未知
压缩:未知
压缩: compress FileName
压缩: tar -Zcvf FileName.tar.Z DirName
压缩: zip FileName.zip DirName