df command: You can view a folder size, usage and so on.
du command: You can view the size of the files and folders.
1.df command
df-h: display the currently available space for all file systems and usage.
2. du command
du -sh *: view individual files and directories under the footprint size of the current directory
3. Delete the File Commands
方法一:切换到要删除的目录,删除目录下的所有文件
rm -f *
方法二:删除logs文件夹下的所有文件,而不删除文件夹本身
rm -rf log/*