Switcher Hangout The place for switchers to discuss their new machines, and how to work with OS X. General support can be had here for newbie stuff, like "How do I restart my new iMac?" :)

Size of Multiple Folders?


Post Reply New Thread Subscribe

 
Thread Tools
Peakoverload

 
Member Since: Feb 13, 2007
Location: Worthing, West Sussex, UK
Posts: 207
Peakoverload has a spectacular aura about
Mac Specs: 27" iMac 3.1Ghz 16GB RAM, 1TB HD. iPhone 4.

Peakoverload is offline
In Windows I can select multiple folders, right click, select properties and it will tell me how much disc space all these files and folders take up and how many files there are.

If I do the same thing in OSX it just opens up multiple Get Info windows

How can I find out the combined size of multiple folders?
QUOTE Thanks
walkerj

 
walkerj's Avatar
 
Member Since: Feb 13, 2005
Location: New Orleans, LA, USA
Posts: 1,186
walkerj is just really nicewalkerj is just really nicewalkerj is just really nicewalkerj is just really nice
Mac Specs: 13" Macbook Pro 2.26Ghz Unibody 4G RAM 160G HDD Superdrive

walkerj is offline
Are they all in the same parent folder or spread about the home folder?

If they are in the same folder a Get Info on the folder they're in will give you what you need.

Otherwise, we're looking at Stupid UNIX Tricks in Terminal.app to get what you want.
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,534
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is online now
du -sch folder1 folder2 folder3 folder4

Will output a list in human readable format, and a total.

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
walkerj

 
walkerj's Avatar
 
Member Since: Feb 13, 2005
Location: New Orleans, LA, USA
Posts: 1,186
walkerj is just really nicewalkerj is just really nicewalkerj is just really nicewalkerj is just really nice
Mac Specs: 13" Macbook Pro 2.26Ghz Unibody 4G RAM 160G HDD Superdrive

walkerj is offline
Quote:
Originally Posted by Dysfunction View Post
du -sch folder1 folder2 folder3 folder4

Will output a list in human readable format, and a total.
Well, that's exactly the Stupid UNIX Trick I alluded to. I'll add to that since du is just going to give one grand total. OP wanted file counts too. So....

ls folder1 folder2 folder3 folder4 /absolutepathto/folder5 | wc -l

That'll give you file count, add a -R if you want it to recurse. But we're getting well outside of the spirit of the Finder.
QUOTE Thanks
AlyciaAnimation

 
Member Since: Mar 04, 2008
Posts: 477
AlyciaAnimation has a spectacular aura about

AlyciaAnimation is offline
Actually you can do it. Once you select all the folders and right click. Hold down the control key. The "Get info" option will change to "get summary info".

Also, if you press the option key "get info" then changes to "show inspector". The difference between the inspector and a regular info dialog is that it'll change the information if you select another folder or file.
QUOTE Thanks
The Vindicat3d

 
The Vindicat3d's Avatar
 
Member Since: Nov 05, 2007
Posts: 985
The Vindicat3d is a jewel in the roughThe Vindicat3d is a jewel in the rough
Mac Specs: Black MacBook- 2.2GHz, 1gb RAM, 160GB, Double-Layer Superdrive.

The Vindicat3d is offline
Or you can just select the files and press cmd+option+I...

Use the Rep System!!

Check out my Blog-->Malevolent Poetry-Updated as of 4/4/08 and will be weekly.
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,534
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is online now
Quote:
Originally Posted by walkerj View Post
Well, that's exactly the Stupid UNIX Trick I alluded to. I'll add to that since du is just going to give one grand total. OP wanted file counts too. So....

ls folder1 folder2 folder3 folder4 /absolutepathto/folder5 | wc -l

That'll give you file count, add a -R if you want it to recurse. But we're getting well outside of the spirit of the Finder.
Wasn't aware that basic Unix commands fell under the privy of "stupid Unix tricks". I'll remember that next time and refrain from offering them

BTW, du does not just give one grand total

Code:
mikeMbp:mp3 mike$ du -sch Fugazi Frank\ Zappa/ Foo\ Fighters/ White\ Zombie/ X Yes
 39M	Fugazi
229M	Frank Zappa/
 65M	Foo Fighters/
 24M	White Zombie/
 28M	X
 51M	Yes
435M	total

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
Peakoverload

 
Member Since: Feb 13, 2007
Location: Worthing, West Sussex, UK
Posts: 207
Peakoverload has a spectacular aura about
Mac Specs: 27" iMac 3.1Ghz 16GB RAM, 1TB HD. iPhone 4.

Peakoverload is offline
Wow thanks a lot guys, very, very useful information there. I haven't tried any Unix stuff yet but think I'll give that a try and I'll definitely try the 'Summary' options too.

Cheers everyone, much appreciated it was driving me nuts!
QUOTE Thanks

Post Reply New Thread Subscribe


« Link contacts to To Do items in iCal | replies sorted in mail vs. outlook 2003 »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Folders displaying wrong size NicT OS X - Operating System 6 01-03-2010 12:19 AM
multiple routers remote folders on selection. skipster OS X - Operating System 0 03-14-2008 05:55 PM
Seeing File size of multiple files The Vindicat3d Switcher Hangout 7 01-14-2008 12:34 AM
Importing multiple folders agraywall Images, Graphic Design, and Digital Photography 3 05-28-2007 07:15 PM
Viewing number of files in multiple folders Womble Switcher Hangout 1 01-13-2007 02:35 AM

All times are GMT -4. The time now is 05:49 AM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?