<---- template headericclude ----->
how to check a folder size in terminal?
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2004
    Posts
    881
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation how to check a folder size in terminal?

    hi,
    when i want to check a folder size in i the terminal with du, it first list all the files sizes within the folder, then in the last the folder size itself, is there any other command to just display the folder size not the files sizes?
    Want to share my experiences with other newbies:
    Fedora For Newbies
    Some Debian Tips

  2. #2
    Join Date
    Feb 2005
    Posts
    1,108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use
    du -s <folder-name>

    du -sh <folder-name> will give you the same output in higher units

  3. #3
    Join Date
    May 2005
    Location
    g-land, east java
    Age
    59
    Posts
    387
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cd /folder
    du -hs
    du -hs /folder

  4. #4
    Join Date
    Aug 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    du -sh /tmp/

    Make sure you leave the trailing slash, otherwise it will give you all the contents.

Similar Threads

  1. KDE 4.1.3 Folder View Icon Size
    By Tekno_Cowboy in forum Using Fedora
    Replies: 0
    Last Post: 14th December 2008, 03:12 PM
  2. How to set a folder size?
    By pingu64x in forum Guides & Solutions (Not For Questions)
    Replies: 2
    Last Post: 18th December 2006, 06:47 AM
  3. check swap size
    By thick0 in forum Using Fedora
    Replies: 3
    Last Post: 7th January 2006, 12:50 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]