Traditional Culture Encyclopedia - The 24 Solar Terms - CentOS can check the amount of hard disk space occupied by each directory with one command.
CentOS can check the amount of hard disk space occupied by each directory with one command.
My VPS uses CentOS system. After a while, I found that the hard disk of VPS occupied a lot, but there was not much data on my website. So what is taking up my hard disk space? We can analyze it by clicking du -sh.
After logging into ssh of vps, enter the following command: du -sh /*
You can list the sizes of all folders in the whole VPS. Where "/"controls which directory to analyze, and the following path can be flexibly changed according to the above results, for example: du -sh /usr/
Use this command to analyze the folder size in the usr directory, and finally locate the large file and delete it directly.
- Related articles
- What food does Xiaoman eat well?
- Winter solstice folk custom
- How often does the truck throttle usually be cleaned?
- Is it better to stick wallpaper on the wall of the house decoration or brush latex paint?
- Poems describing egrets
- The Origin, Customs and Characteristics of Tomb-Sweeping Day
- A hero whose solar terms are like plum blossoms.
- Steps to decorate eggs
- How can I make a dynamic desktop?
- Moxibustion master solar terms