Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > How to access 'private' files ???

How to access 'private' files ???
Thread Tools
malcolm347
Forum Regular
Join Date: Aug 2005
Status: Offline
Reply With Quote
Sep 30, 2009, 11:44 PM
 
I am currently cleaning up my harddrive, and i used disk inventory x to analyze my HD, and I found that a few of my 'private files' specifically, private>var>vm>sleepimage, sleepimage is like 3 GB....way too big....this happenned to me before and i just can't remember how to access and delete/trim it down....

any help would be great !!
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Sep 30, 2009, 11:51 PM
 
Restart. The vm directory is wiped between boots.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Art Vandelay
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Oct 1, 2009, 12:28 AM
 
The sleepimage file size is equal to the amount of RAM installed. It will not change size.
Vandelay Industries
     
reader50
Administrator
Join Date: Jun 2000
Location: California
Status: Offline
Reply With Quote
Oct 1, 2009, 03:11 AM
 
If you want to get into invisible folders like /private/, use a utility like TinkerTool to make all files visible. If you want to make a file or folder remain visible (or turn invisible), you can use several tools to toggle the invisibility flag. I've long used MuchoFileInfo for this purpose.

If you just want to find & zap big files, you don't need to fiddle with visibility at all. Download OmniDiskSweeper - Omni made it a free download some months back. While you are there, grab OmniDazzle too for some neat effects. It's another one they made free, and it lets you do cool effects on screen.
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Oct 1, 2009, 08:00 AM
 
In the Finder select Go to Folder... and enter /private/var/vm. Boom.

Art is right. The sleepimage file will always be the size of your RAM. Deleting it won't work. As soon as you sleep your Mac it will be recreated from scratch. If you want to permanently get rid of it, you'd have to shut off Safe Sleep.

You can disable Safe Sleep by opening the Terminal (located in Applications/Utilities) and entering the following command:
sudo pmset -a hibernatemode 0
then press return. Enter your password when prompted.
You can then select "Go to Folder" under the "Go" menu in the Finder, and enter: /private/var/vm then press return, and drag the file sleepimage to the Trash.
In order to re-enable Safe Sleep, use the command:
sudo pmset -a hibernatemode 3
in the Terminal.

Be sure to read up on what Safe Sleep does to be sure if you can really turn it off without running into trouble.
     
davidbk1
Junior Member
Join Date: Aug 2005
Status: Offline
Reply With Quote
Oct 4, 2009, 09:55 PM
 
You should probably leave anything in /private alone. Mucking about in system files is a good way to render your machine inoperable. Folders that are hidden usually hold essential OS files and generally don't get too bloated. You're better off removing printer drivers you don't use, iDVD themes, Garage Band loops, etc.
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Oct 5, 2009, 01:26 AM
 
Originally Posted by Simon View Post
Boom.
Oh no, you didn't.

-t
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Oct 5, 2009, 09:59 AM
 
Originally Posted by davidbk1 View Post
You should probably leave anything in /private alone. Mucking about in system files is a good way to render your machine inoperable. Folders that are hidden usually hold essential OS files and generally don't get too bloated. You're better off removing printer drivers you don't use, iDVD themes, Garage Band loops, etc.
That advice actually holds for /System.

/private isn't off limits per se. /tmp for example is in there too and you can definitely delete its contents w/o ruining your system.
     
davidbk1
Junior Member
Join Date: Aug 2005
Status: Offline
Reply With Quote
Oct 5, 2009, 02:20 PM
 
Originally Posted by Simon View Post
That advice actually holds for /System.

/private isn't off limits per se. /tmp for example is in there too and you can definitely delete its contents w/o ruining your system.
Very true, the best rule for exploring the filesystem is if you aren't 100% sure exactly what it does, don't touch it. I neglected to get into /tmp because I think it falls under shouldn't get too bloated, and if you don't know how to access it (Terminal, Go To, etc) you probably don't know the FHS well enough to recognize it as non-essential.
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 08:59 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,