Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 17-06-2009
Member
 
Join Date: May 2008
Posts: 24
Command to find size of a directory

Hi,

Is there any command that will tell me the size of the complete Directory including the sub directories & all the files in linux?

Thanks in advance
Reply With Quote
  #2  
Old 17-06-2009
Member
 
Join Date: Jan 2009
Posts: 40
Re: Command to find size of a directory

Considering you need to find the size of directory A & you are already in the directory which contains directory A.

Syntax:
Code:
du -h A | grep A$
I hope this helps!
Reply With Quote
  #3  
Old 17-06-2009
Member
 
Join Date: Jan 2009
Posts: 41
Re: Command to find size of a directory

du - Finding the size of a directory
Code:
$ du
Typing the above at the prompt gives you a list of directories that exist in the current directory along with their sizes. The last line of the output gives you the total size of the current directory including its subdirectories. The size given includes the sizes of the files and the directories that exist in the current directory as well as all of its subdirectories. Note that by default the sizes given are in kilobytes.
Fore more details
http://www.codecoffee.com/tipsforlinux/articles/22.html
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Command to find size of a directory"
Thread Thread Starter Forum Replies Last Post
Need to find HDD size for chipset Chandlerr Hardware Peripherals 5 29-06-2010 10:08 AM
Get directory size after compression TechGate Software Development 5 04-02-2010 01:46 AM
How To Find the directory of My Documents [VBA/VB6] Paul Tips & Tweaks 0 02-09-2008 02:10 PM
Using ldapsearch to find things in the active directory shyman Active Directory 4 28-03-2007 12:25 PM
DSRM.exe Active Directory command line tool Joe Windows Server Help 2 10-03-2006 07:50 PM


All times are GMT +5.5. The time now is 01:37 PM.