Results 1 to 3 of 3

Thread: Command to find size of a directory

  1. #1
    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

  2. #2
    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!

  3. #3
    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

Similar Threads

  1. Need to find HDD size for chipset
    By Chandlerr in forum Hardware Peripherals
    Replies: 5
    Last Post: 29-06-2010, 10:08 AM
  2. Get directory size after compression
    By TechGate in forum Software Development
    Replies: 5
    Last Post: 04-02-2010, 01:46 AM
  3. Replies: 0
    Last Post: 02-09-2008, 02:10 PM
  4. Using ldapsearch to find things in the active directory
    By shyman in forum Active Directory
    Replies: 4
    Last Post: 28-03-2007, 12:25 PM
  5. DSRM.exe Active Directory command line tool
    By Joe in forum Windows Server Help
    Replies: 2
    Last Post: 10-03-2006, 07:50 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,654,720.85158 seconds with 17 queries