Recently, we found that the disk on the server was not enough to be occupied by some large files. At this time, we need to clear some large files to solve the problem of disk occupied. To filter the files, run the following command:
$ df -h
$ du -h -x --max-depth=1
Copy the code
The above the first command to look at a system as a whole disk usage, the second command is to list all files under the current directory (directory) disk footprint, we through the way of cascaded filter to locate exactly what files (directory) takes the server disk space, and then we selectively deleted files (directory).