Thursday, 9 August 2012

Finding size of directory Linux

Problem: Finding size of folder or directory in Unix/Linux.
Solution: du (abbreviated from disk usage) is a standard Unix program used to estimate file space usage—space used under a particular directory or files on a file system.
Below command finds the size of home directory 
[root@dragon home]# du -sh .
3.7G    .

No comments:

Post a Comment