Linux view all folders in the root directory of the disk space

Excuting an order

you - sh  / * | black -h

Check under the root directory of all folders take up more disk space. / * Check the disk space is start at the root, | sort -h is sorted by size.

0    /bin
0    /dev
0    /lib
0    /lib64
0    /proc
0    /sbin
0    /sys
4.0K    /media
4.0K    /mnt
4.0K    /opt
4.0K    /srv
16K    /lost+found
24K    /home
32K    /tmp
420K    /run
4.5M    /root
34M    /etc
132M    /boot
383M    /var
1.4G    /usr

Then see which files take up more disk space to clean up

Guess you like

Origin www.cnblogs.com/psc0218/p/12362886.html
Recommended