Identifying the files or directories which are hogging space in your windows machine can be very difficult specially if you have hidden files or they are in nested directories.
If you have worked on Linux you will know it has a very useful command du -sh. When i work on windows I really miss the Linux command which is very handy.
Thankfully you can find a utility at sysinternals on microsoft site which do the same job as du command in linux.
The name of utility is simply “du” and you can download it from here .
Once you download the utility you just have unzip it and no installation needed.
After that open the command prompt as admin user and go to the directory where you have unzipped the “du” and execute it as below to find the usage of any directory.
du -l 1 "C:\Program Files\Microsoft SQL Server"
It will show you usage of even the hidden files. The usage is shown in KB.