Get directory size
There’s no Windows built in command to find directory size. But there is a tool called diruse.exe which can be used to get folder size. This tool is part of XP support tools. This command can be used to get directory size. This command’s syntax is given below.
diruse prints the directory size in bytes and it also prints the number of files in the directory(it counts the number of files in the sub folders also).
From the Terminal command line, the following syntax to see the size of a directory:
For example, to get the total size of the /Applications folder, you would issue the following command string:
To get the directory size in mega bytes we can add /M switch.
Dir command accepts wild cards. We can use ‘*” to get the file sizes for all the files in a directory.