查看磁盘空间使用情况:

1
df -h

查看指定目录空间情况:

1
du -h --max-depth=1 /opt

查看当前目录空间使用情况:

1
du -h