New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Oops...20GB file buildup


Post Reply New Thread Subscribe

 
Thread Tools
tannerdsilva

 
Member Since: May 24, 2012
Posts: 2
tannerdsilva is on a distinguished road

tannerdsilva is offline
Hello. I'm a (semi-new) Mac developer. I've been working on a component to my app that - in order to function properly - needs to download a fairly large file from the internet. I thought this file would be stored in memory (and would be removed once the app no longer needed it), but it's actually stored in the /var folder. I've been running and debugging this component for numerous days, which means roughly 20GB of unnecessary files have built up. Of course, I quickly changed my code to remove this file once it's no longer needed, but now I have a big, single 20GB file on my system that I must get rid of. I have a 64GB MBA, so I need all the space I can get. I know I shouldn't ever mess with the /var folder. Any ideas as to how I can hunt these files down and remove them? I have a whole bunch of custom stuff on my system, so I really don't want to do a clean install of Lion. Thanks ahead of time!
QUOTE Thanks
chas_m

 
chas_m's Avatar
 
Member Since: Jan 22, 2010
Location: Victoria, BC
Posts: 17,528
chas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond repute
Mac Specs: Mid-2012 MBP (16GB, 1TB HD), BenQ second monitor, iPhone 5s 32GB, iPad Air 2 64GB

chas_m is offline
Since you know the exact file you're looking to get rid of, this is an occasion where you can use a third-party tool to remove it pretty easily.

I like Grand Perspective (free), but there are similar tools like Disk Inventory X (also free). Both do the same thing -- provide you with a visual representation of the files on your HD. Spotting the 20GB rogue files should be very simple, and you can delete them (and only them!) from within the program. Restart and all good.
QUOTE Thanks
TattooedMac

 
TattooedMac's Avatar
 
Member Since: May 19, 2009
Location: Waiting for a mate . . .
Posts: 7,882
TattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant future
Mac Specs: 21" iMac 2.9Ghz 10.9.4 13"MBP 2.9Ghz i7 Yosemite 10.10 ~ iPhone5 iOS 8 ~ iPad Mini iOS 8 ~ ATV3 6.1

TattooedMac is offline
There is also Daisy Disk that does a excellent job with a good visual of your HD

Someone might no of a Terminal command as well to find that file and trash it from within.
Cheers

Dont forget to use the Reputation System if someone has helped you out !!!
Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!
MoTM ☆☆☆
QUOTE Thanks
chas_m

 
chas_m's Avatar
 
Member Since: Jan 22, 2010
Location: Victoria, BC
Posts: 17,528
chas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond repute
Mac Specs: Mid-2012 MBP (16GB, 1TB HD), BenQ second monitor, iPhone 5s 32GB, iPad Air 2 64GB

chas_m is offline
There's nothing in Terminal that gives you the reassurance of a VISUAL map of the files.

I've had WAY too many stories of people going into folders like /var and using "rm" higgeldy-piggeldy with DISASTROUS results.

Plus, I'm lazy. Color-coded visual file map for free with easy, safe deleting FTW IMO.
QUOTE Thanks
TattooedMac

 
TattooedMac's Avatar
 
Member Since: May 19, 2009
Location: Waiting for a mate . . .
Posts: 7,882
TattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant futureTattooedMac has a brilliant future
Mac Specs: 21" iMac 2.9Ghz 10.9.4 13"MBP 2.9Ghz i7 Yosemite 10.10 ~ iPhone5 iOS 8 ~ iPad Mini iOS 8 ~ ATV3 6.1

TattooedMac is offline
Quote:
Originally Posted by chas_m View Post
There's nothing in Terminal that gives you the reassurance of a VISUAL map of the files.

I've had WAY too many stories of people going into folders like /var and using "rm" higgeldy-piggeldy with DISASTROUS results.

Plus, I'm lazy. Color-coded visual file map for free with easy, safe deleting FTW IMO.
I agree completely, but there are some that swear by the Terminal command. For a developer it could be for them.

Cheers

Dont forget to use the Reputation System if someone has helped you out !!!
Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!
MoTM ☆☆☆
QUOTE Thanks
tannerdsilva

 
Member Since: May 24, 2012
Posts: 2
tannerdsilva is on a distinguished road

tannerdsilva is offline
Well...Yes. I actually used daisy disk to spot this file. Finding it isn't the problem. I'm not sure if the system (and other apps) have thrown important files in that huge file. Because my disk is only 64GB, I watch my files closely. I know this file was 5GB before I debugged this part of my app. I only want to delete the files I downloaded. I plan on upgrading to a MacBook Pro this summer when they're released, and I don't wan't this going on to my new system (I plan on transferring my files and not "starting fresh"). Thats my problem. Any ideas? I guess I can clone my drive, delete it, and if something fails, just restore back...

This is what it looks like in DaisyDisk. It's the entire orange section.
Screen Shot 2012-05-24 at 11.31.28 PM.png
QUOTE Thanks
chas_m

 
chas_m's Avatar
 
Member Since: Jan 22, 2010
Location: Victoria, BC
Posts: 17,528
chas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond reputechas_m has a reputation beyond repute
Mac Specs: Mid-2012 MBP (16GB, 1TB HD), BenQ second monitor, iPhone 5s 32GB, iPad Air 2 64GB

chas_m is offline
Your last sentence contains the answer you are looking for.
QUOTE Thanks

Post Reply New Thread Subscribe


« .tcshrc not being executed when terminal opens | startup dish transfer »
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
bad mess with file extension parappo OS X - Operating System 0 04-29-2010 06:11 AM
File Icons & Associations confusion markwm OS X - Operating System 1 03-04-2006 11:38 PM
Not too pleased with new iMac JunMacTech Apple Desktops 14 12-05-2005 08:13 PM
Show Item Info inflexion OS X - Operating System 15 10-24-2005 11:34 PM

All times are GMT -4. The time now is 03:06 PM.

Powered by vBulletin
Copyright ©2000 - 2014, 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?