linux 内存查看,文件大小查看

命令“df -h”使用这个命令会更清楚磁盘使用情况

lab532@lab532-Z370-HD3:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            7.8G     0  7.8G   0% /dev
tmpfs           1.6G  9.8M  1.6G   1% /run
/dev/sda1        94G   32G   58G  36% /
tmpfs           7.9G  104M  7.8G   2% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           7.9G     0  7.9G   0% /sys/fs/cgroup
/dev/sda5       1.7T  1.5T   33G  98% /home
tmpfs           1.6G   76K  1.6G   1% /run/user/1000
 

命令“du -h”使用这个命令查看文件大小

sudo du -h /home/lab532

2.0G    /home/lab532/gjh20190805/Pytorch_work_space/deeplabv3plus-pytorch-master/data/VOCdevkit/VOC2012
2.0G    /home/lab532/gjh20190805/Pytorch_work_space/deeplabv3plus-pytorch-master/data/VOCdevkit
2.0G    /home/lab532/gjh20190805/Pytorch_work_space/deeplabv3plus-pytorch-master/data
2.0G    /home/lab532/gjh20190805/Pytorch_work_space/deeplabv3plus-pytorch-master
4.0K    /home/lab532/gjh20190805/Pytorch_work_space/log/deeplabv3+coco
8.0K    /home/lab532/gjh20190805/Pytorch_work_space/log
 

查看文件大小  du -sh *
lab532@lab532-Z370-HD3:~$ du -sh *
6.9G    caffe_v3
4.0K    Desktop
4.0K    Documents
4.0K    Downloads
880M    learning_to_sample-master
4.0K    Music
4.0K    Pictures
4.0K    Public
4.0K    Templates
11G     tensorflow_workspace
4.0K    Videos

删除目录下的所有文件  rm -rf *

你可能感兴趣的:(linux,文件管理软件与技术)