Size of Multiple Folders?

Joined
Feb 13, 2007
Messages
254
Reaction score
8
Points
18
Location
Worthing, West Sussex, UK
Your Mac's Specs
27" Retina 5K iMac 3.2Ghz Quad 24GB RAM, 1TB HD. iPhone 11.
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 :Angry:

How can I find out the combined size of multiple folders?
 
Joined
Feb 13, 2005
Messages
1,186
Reaction score
73
Points
48
Location
New Orleans, LA, USA
Your Mac's Specs
13" Macbook Pro 2.26Ghz Unibody 4G RAM 160G HDD Superdrive
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.
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
du -sch folder1 folder2 folder3 folder4

Will output a list in human readable format, and a total.
 
Joined
Feb 13, 2005
Messages
1,186
Reaction score
73
Points
48
Location
New Orleans, LA, USA
Your Mac's Specs
13" Macbook Pro 2.26Ghz Unibody 4G RAM 160G HDD Superdrive
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.
 
Joined
Mar 4, 2008
Messages
477
Reaction score
22
Points
18
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.
 
Joined
Nov 5, 2007
Messages
985
Reaction score
31
Points
28
Your Mac's Specs
Black MacBook- 2.2GHz, 1gb RAM, 160GB, Double-Layer Superdrive.
Or you can just select the files and press cmd+option+I...
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
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
 
OP
P
Joined
Feb 13, 2007
Messages
254
Reaction score
8
Points
18
Location
Worthing, West Sussex, UK
Your Mac's Specs
27" Retina 5K iMac 3.2Ghz Quad 24GB RAM, 1TB HD. iPhone 11.
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!
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top