💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
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 压缩