df,du
<p><strong>一.查看系统磁盘使用情况</strong></p>
<pre><code>df -h</code></pre>
<p>效果如图:
<img src="https://www.showdoc.cc/server/api/common/visitfile/sign/9fd3b8b8642b7d6726c5ead0590e3c6f?showdoc=.jpg" alt="" /></p>
<p><strong>二.查看单个目录占用空间(mysql目录磁盘空间使用情况)</strong></p>
<pre><code>du -h</code></pre>
<p>效果如图:
<img src="https://www.showdoc.cc/server/api/common/visitfile/sign/b0c94ac67bdfbd506b7808f398c40b65?showdoc=.jpg" alt="" /></p>