一、压缩命令 tar -zcvf /home/test.tar.gz /test tar -zcvf 打包后生成的文件名全路径 要打包的目录 二、查看文件夹大小的命令 sudo du -h --max-depth=1