The df and du commands for viewing the file and folder sizes in Linux are very practical, and the total number of folders is counted as: du-shxmldb/
View the size of the linux file directory and the number of files contained in the folder
Df allows you to view the size, usage ratio, file system, and its Mount point of a level-1 folder, but there is nothing to do with files.
Du allows you to view the file and folder size. When the disk size exceeds the standard, an alarm is triggered. it is wise to master the df and du commands.
Total statistics size
Du-sh xmldb/# count the size of the current directory and sort du-sm * | sort-ndu-sk * | grep guojf # check the second one/ pre-character text du-m | cut-d "/"-f 2 # view the number of files in the folder du xmldb/* | wc-l40752
Explanation: wc [-lmw] parameter description:-l: how many rows-m: How many characters-w: how many words