Saturday, August 23, 2008

Checking size of a file or directory in Megabytes in Linux

Hi all,

just a small thing but if you want to find the size of a file or directory in Linux, use the following command:

root@gaurav$>du -H file/directory name

Replace the file/direcotry name with the file or directory name you want to know the size of or don't include it if you want to know the size of every file and/or directory in the current directory

Hope that helped. 

Cheers!!!!!!!!!

No comments: