Windows does not have any in-built command(Like the Linux command du) which show the disk usage statistics for a directory. However, there’s a downloadable tools from SysInternals(now part of Microsoft) which can show us the disk usage numbers.
Du.exe version 1.4 can be downloaded from the below link.
http://technet.microsoft.com/en-us/sysinternals/bb896651
Find the disk usage of a directory
Command for finding the size of a directory is:
du directory
Example:
To find the size of the folder C:\Windows, the command would be:
C:\>du.exe c:\windows Du v1.34 - report directory disk usage Copyright (C) 2005-2009 Mark Russinovich Sysinternals - www.sysinternals.com Files: 67482 Directories: 14198 Size: 14,602,213,939 bytes Size on disk: 14,597,516,679 bytes
Find the disk usage of a drive
Using du command we can find the current disk usage of a disk drive also.
Example:
C:\>du.exe c:\ Du v1.34 - report directory disk usage Copyright (C) 2005-2009 Mark Russinovich Sysinternals - www.sysinternals.com Files: 169591 Directories: 33839 Size: 101,282,363,438 bytes Size on disk: 101,274,488,768 bytes
{ 0 comments… add one now }