目录
查看系统整体磁盘情况
vagrant@lnmp2:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 396M 5.6M 390M 2% /run
/dev/sda1 30G 7.5G 22G 26% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
vagrant 235G 33G 202G 14% /vagrant
workspace 235G 33G 202G 14% /workspace
tmpfs 396M 0 396M 0% /run/user/1000
查看单个目录磁盘整体情况
vagrant@lnmp2:/$ df -h /workspace/
Filesystem Size Used Avail Use% Mounted on
workspace 235G 33G 202G 14% /workspace
查看指定目录下的子目录的磁盘占用
vagrant@lnmp2:/$ du --max-depth=1 -h /workspace/
5.1M /workspace/dnmp
5.0M /workspace/dnmp_win
2.1M /workspace/docker
128M /workspace/electron
5.8M /workspace/gitee
文章源自编程技术分享-https://mervyn.life/59ce9c6a.html 我的微信公众号
微信扫一扫
评论