tar常用简单命令

作者: shaoliang 2020-03-31 08:17   访问数:595

压缩

tar -cf 1.tar.gz ./source    


c create

f file force

将目录./source 新建 打包为 1.tar.gz ,注意,不压缩


tar -czf 1.tar.gz ./source 压缩

z



解压缩

tar -xf 1.tar.gz


 -x, --extract, --get       从归档中解出文件


上一条:pymysql 下一条:ubuntu apt 源

鲁ICP备19029146号-1 管理
CopyRight@51dr.top 页面打开时间 0.0343 秒.