When the size of the disk exceeds the standard, there will be alarm prompts, if you know the DF and du command is a very wise choice.
DF can view the first-level folder size, usage scale, file system and its hang-in points, but there is nothing to file.
Du can view the size of files and folders.
It works well with both. For example, use DF to see which level of directory is too large, and then use DF to see the size of the folder or file, so you can quickly determine the crux of the problem.
The following is a brief introduction
File systems that can be used to view partitions
Df-t
The DF command can show the available space and usage for all current file systems, as shown in the following example:
Df-h
Viewing the use of files in your system
Df-h
View the size of each file and directory in the current directory
Du-sh *
Method One: Switch to the directory you want to delete, delete all files in the directory
Rm-f *
Method Two: Delete all files under the Logs folder without deleting the folder itself
RM-RF log/*
View file and folder sizes under Linux