Detailed explanation of linux memory usage

One: first log in

Two: View the current directory

Command: df -h

Three: Check the occupancy of specific folders

Instructions: du --max-depth = 1 -h / data /

Or: In order to quickly calculate the display, but also just want to view the overall size of the directory

Instructions: du -sh / data /

Four: There are other operations that can be df --help and du --help

or

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325251542&siteId=291194637