企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
tar -cvf /tmp/etc.tar /etc 仅打包,不压缩! tar -Czcvf /tmp/etc.tar.gz /etc gzip 压缩 打包文件不包含路径的方法: 1.  终端下进入到文件的目录,然后执行  tar -cvf   dest.tar    file1,file2 2. 使用  C 参数, 文件 file1, file2 在 /home下, 生成的打包文件  dest.tar 在 var下,则执行   tar -C /home  -cvf  /var/dest.tar  file1 file2 tar -jcvf /tmp/etc.tar.bz2 /etc bzip2 压缩