View the size of the linux file directory and the number of files contained in the folder. The total size is measured in du-sh * // *, which indicates all the current directories. du-sm * | sort-n // count the current directory size and sort the values in the descending order du-sk * | sort-ndu-sk * | grepguojf // Check the size of a person du-m | cut-d & quot; /&
View the size of the linux file directory and the number of files contained in the folder
Total statistics size
Du-sh * // * indicates all directories currently.
Du-sm * | sort-n // count the current directory size and sort the directory size.
Du-sk * | sort-n
Du-sk * | grep guojf // view the size of a person
Du-m | cut-d "/"-f 2 // read the text before the second character
View the number of files in this folder /*
Du xmldb/
Du xmldb/* | wc-l
40752
Explanation:
Wc [-lmw]
Parameter description:
-L: number of rows
-M: The number of characters.
-W: how many words