View disk usage linux two commonly used commands

 

1, see the total capacity has been used, unused capacity: df -hl

-h: displays in units above kb

-l: Displays only the local file system

2, view the current path, each file / folder space size: du -sh *

 

1, see the total capacity has been used, unused capacity: df -hl

-h: displays in units above kb

-l: Displays only the local file system

2, view the current path, each file / folder space size: du -sh *

 

Guess you like

Origin www.cnblogs.com/xiaoliu66007/p/10951226.html