java如何操作linux指令df查询磁盘占用大小并返回数据
Runtime.getRuntime().exec()可以调用linux平台下的命令及Shell脚本
Runtime rt = Runtime.getRuntime();Process p = rt.exec("df -hl /data/voc");// df -hl 查看硬盘空间