Welcome to apple.newbox.org Thursday, December 09 2021 @ 08:37 AM EST  
Links |  Past Polls |  Advanced Search |   
Applications (8/0)
Classic (0/0)
Hardware (12/0)
Miscellaneous (6/0)
Networking/Serving (3/0)
Mac OS X (13/0)
Terminal/CLI (3/0)
iPhone (3/0)
General News (3/0)
GeekLog (1/0)

User Functions


Don't have an account yet? Sign up as a New User

What's New
No new stories

LINKS last 2 wks
No recent new links

Older Stories
Saturday 06-Mar
  • iPad thoughts (0)

  • Friday 19-Feb
  • A Couple Small Time Machine Notes (0)

  • Saturday 26-Sep
  • Details about iPhone backups and restore (0)

  • Monday 29-Jun
  • Camera updates in iPhone OS 3.0 (0)

  • Saturday 30-May
  • Mac mini disassembly notes (0)

  • Friday 15-May
  • Notes about Windows 7 on a 10.4 Mac with Virtual Box (0)

  • Monday 02-Mar
  • Safari 4 (Beta) notes (0)

  • Saturday 17-Jan
  • Random software notes (0)

  • Wednesday 17-Dec
  • Quicksilver vs. Spotlight (0)
  • 10.5's Dock still sucks (0)

  • Calculating directory sizes    
    Wednesday, March 02 2005 @ 05:44 PM EST
    Contributed by: Admin

    Terminal/CLITo see how big all your folders are, launch Terminal and enter du -sh ./*

    Sample output:

    355M	./Desktop
    1.3M	./Documents
    242M	./Library
    116M	./Movies
    283M	./Music
     33M	./Pictures
     24K	./Public
    228K	./Sites
     44K	./bin
    4.0K	./dev
    195M	./safari-downloads
    119M	./tmp
    Explaination: du is 'disk usage,' -s means 'just for the files named' (otherwise it'll dig through and count every subdirectory and file) and -h means 'human readable'--it'll report in MB or GB or whatever is appropriate, rather than a gigantic number of kilobytes.

    To see how much space all your users are using, use this command as an administrative user:
    sudo du -sh /Users/*

    You can also get a more detailed view--one level deeper--with this:
    sudo du -sh /Users/*/*
    For example:
     14M    /Users/admin/Desktop
    344K    /Users/admin/Documents
     36M    /Users/admin/Library
      0B    /Users/admin/Movies
     24K    /Users/admin/Music
    127M    /Users/admin/My Applications
      0B    /Users/admin/Pictures
    142M    /Users/admin/Public
     28K    /Users/admin/Sites
    1.4G    /Users/brian/Desktop
    1.1M    /Users/brian/Documents
    257M    /Users/brian/Library

      [ Views: 2534 ]  

    Calculating directory sizes | 0 comments | Create New Account
    The following comments are owned by whomever posted them. This site is not responsible for what they say.
    What's Related

    Story Options
  • Mail Story to a Friend
  • Printable Story Format

  • Created this page in 0.29 seconds

     Copyright © 2021 apple.newbox.org
     All trademarks and copyrights on this page are owned by their respective owners.

    Powered By