1. 查看文件夹存储占用 du -sh /path/to/your/folder 2. 查看文件夹挂载磁盘的剩余空间 df -h $(du -sk /path/to/your/folder | awk '{print $2}')