Private Tmp

Private Tmp




⚡ ALL INFORMATION CLICK HERE 👈🏻👈🏻👈🏻

































Private Tmp

Sign up or log in to customize your list.

more stack exchange communities

company blog


The best answers are voted up and rise to the top


Stack Overflow for Teams
– Start collaborating and sharing organizational knowledge.



Create a free Team
Why Teams?



Modified
2 years, 7 months ago


7,177 1 1 gold badge 32 32 silver badges 40 40 bronze badges


641 1 1 gold badge 5 5 silver badges 7 7 bronze badges



Sorted by:


Reset to default





Highest score (default)


Date modified (newest first)


Date created (oldest first)




31.1k 6 6 gold badges 64 64 silver badges 87 87 bronze badges


225 2 2 silver badges 8 8 bronze badges


3,188 2 2 gold badges 30 30 silver badges 39 39 bronze badges


2,456 7 7 gold badges 20 20 silver badges 25 25 bronze badges


21.6k 1 1 gold badge 58 58 silver badges 85 85 bronze badges


11.4k 8 8 gold badges 50 50 silver badges 126 126 bronze badges


24.3k 1 1 gold badge 33 33 silver badges 82 82 bronze badges


Ask Different

Tour
Help
Chat
Contact
Feedback



Company

Stack Overflow
Teams
Advertising
Collectives
Talent
About
Press
Legal
Privacy Policy
Terms of Service
Cookie Settings
Cookie Policy



Stack Exchange Network



Technology




Culture & recreation




Life & arts




Science




Professional




Business





API





Data





Apple is a trademark of Apple Inc., registered in the US and other countries. This site is not affiliated with or endorsed by Apple Inc. in any way.



Accept all cookies



Customize settings



Stack Exchange network consists of 182 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Connect and share knowledge within a single location that is structured and easy to search.
Why is /tmp a symlink to /private/tmp on Mac OS X? In other words, why isn't /tmp just a regular directory, like on Linux or BSD? I understand how it works and I don't mind it, I'm just interested in the (historical?) reasoning behind it.
As I understand it, it's a holdover from NextStep (which OS X is based on), and NextStep did it to support NetBooting. The idea was that you could boot from a network-hosted volume (probably read-only, and certainly shared with other computers), and early in the boot process mount a local (writable) volume on /private; as g mentioned, this allowed runtime-modification of /var and /tmp, as well as per-computer settings in /etc.
This isn't needed anymore, as Apple's current NetBoot system uses a shadow disk image to store changes anywhere on the boot volume. But some programs/docs/etc now assume the files live under /private, so it'd be too much trouble to switch them back...
Update: since I wrote this, Apple has stopped supporting NetBoot, so the original purpose of /private is even more obsolete. However, in macOS Catalina (version 10.15), they've added a new volume split. In this case it's for security rather than to support NetBoot, but it works in a fairly similar way.
Catalina's system volume is mounted read-only, with a read-write volume mounted at /System/Library/Data (analogous to the old system that mounted a RW volume at /private), and "firmlinks" making parts of the RW volume appear at their usual locations in the filesystem (again, analogous to the symbolic links that make parts of /private appear at their usual locations). For example, /Users is now a firmlink to /System/Library/Data/Users. The Eclectic Light Company has a good summary .
Catalina also still has the symbolic links to /private; thus, when you access /etc on Catalina, it follows the symlink to /private/etc, and then the firmlink to /System/Library/Data/private/etc
I have always wondered the same thing. I can't find any documentation to support it, but typically this pattern is used to make it easier to store files on another volume (e.g. hard drive). This allows the drive to be mounted (e.g. attached) into the file system in one place. For example when the drive is mounted at /private and then the folders /etc , /tmp , and /var are then all located on that other drive.
What I can't say is why this would be beneficial. It is worth noting, however, that these three folders contain "data" files such as configuration, temporary, log, transient and database files rather than executable code contained in the /bin , /sbin and /usr folders.
Not sure about the historical reason, but OS X always “reorganized” the typical Unix structure. /tmp is not the only thing that goes to /private , it also has /etc and /var .
Maybe someone with more OS X background can come up with something more reasonable.
/tmp is a symbolic lynk to /private/etc so as to maintain clearly separated 2 filesystems:
/ which can be mounted as read-only, to protect it against
any accidental or unwanted modification, and to protect it of being filled with always increasing files (logs and temporary files),
/private which can be mounted as read-write, and which hold any directory containing modifiable files.
If you look at / you will notice 3 directories which are similar
symbolic links for this same reason:
This separation of access between read-write and read-only filesystems
isn't used actually (in MacOS X), but everything is in place to achieve
this security separation.
Some admins are enforcing this security separation by defining a specific /private
filesystem with the appropriate size and appropriate mounting options
(most notably nosuid ).
Frequently in Unix, identical ways of the same thing are because of historical differences between System V Unix and BSD Unix. Modern Unixes have to support both to be compatible.
For instance, lpr and lp for printing: lpr is from BSD and lp is from System V.
Whether this is the case here, I don't know.
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2022 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2022.9.6.42960


By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy .


Temporary files (also called "temp files") usually have filenames that end with the extension .TMP . Though they share the same file extension, temporary files can be created by many different programs. This can make it difficult to figure out what program created a specific temp file, or even where the file came from.
Sometimes, the part of the filename before the extension will give you a clue as to where the file is from. For example, if the filename is 2006_annual_report.tmp , the file might be a Word document or Excel spreadsheet that was named "2006 annual report." Other times, the location of a temp file may help you determine what program created the file. For example, if you find a temp file in a folder named "Temporary Files" within the main folder of a certain application , the temporary file most likely belongs to that application.
Programs create temporary files primarily for backup purposes. Many programs, such as those included with Microsoft Office, will save a temporary version of a file every few minutes while the original file is open. Then if you have not saved the file and the program unexpectedly crashes or the computer shuts down, there will be a temporary file that was recently saved. Temp files are typically deleted automatically when the program is closed normally, but if the program quits unexpectedly, the temp files are not deleted.
However, some temp files are left behind even when a program is quit correctly. This may be due to programming errors that cause temporary files to not be correctly disposed of when an application is quit. These files can accumulate on your hard drive without you even noticing.
Finally, Web browsers , such as Internet Explorer, create "Temporary Internet Files" to store user data, including cookies , images from visited Web pages, and the user's browsing history.
If you plan on manually removing specific temp files, first make sure the files you want to delete are actually temporary files and that you do not need them for any reason. Once you have verified that they are not needed or are duplicates of other files, simply move the files to the Recycle Bin (Windows) or the Trash (Mac) and empty the trash.
If you want to delete many temp files at once, several programs are available that will automate the process for you. These programs can search your hard disk for temp files and remove the ones you don't need, saving hard disk space. Some examples of Windows utilities include:
NOTE: If you want to delete Temporary Internet Files in Windows, follow these instructions .
Open common file formats with a file viewer for your platform.





Sign in



















Sign in

Sign in corporate






Is it safe to delete tmp files in the Hidden /private/tmp file?
On a similar note:
Can I delete files from the /private/var/tmp directory?

There are over 100 files in there, some going back to 2007, taking up over 5GB.

Thanks
Dave


All replies



Drop Down menu










first












Page 1 of 1


Page 1/1













last











why do you want to delete anything from there by hand? programs put some temporary items in /private/tmp and they might need them while they are running. but there is no need to clean up this folder by hand. programs should remove any temp files from that directory when you quit them and if not, it should be emptied by the system when you reboot. when I look at my /private/tmp I see a couple of folders which seem to belong to launchd which is running at all times. I wouldn't touch those. what is it you want to delete?








Thread reply - more options















Link to this Post






I've been using 1Password 3 beta and everytime I install a new version it writes the app to it's own folder in the tmp file. I have deleted it in the past and it had no ill effects on the app running normally.

Call it curiosity.








Thread reply - more options















Link to this Post






if you quit 1password, you can safely delete any 1password folders left there.








Thread reply - more options















Link to this Post






On a similar note:
Can I delete files from the /private/var/tmp directory?

There are over 100 files in there, some going back to 2007, taking up over 5GB.

Thanks
Dave








Thread reply - more options















Link to this Post














first












Page 1 of 1


Page 1/1













last














Support


Community




More ways to shop: Visit an Apple Store , call
1-800-MY-APPLE, or find a reseller .

Copyright ©
2022 Apple Inc. All rights reserved.


Privacy Policy
Terms of Use
Sales and
Refunds
Legal
Site Map


Looks like no one’s replied in a while.

To start the conversation again, simply ask a new question.




Macbook Pro 17",


Mac OS X (10.6.1)




Question:
Q:
Deleting tmp files in the Hidden /private/tmp file

More
Less




Sign up or log in to customize your list.

more stack exchange communities

company blog


Stack Overflow for Teams
– Start collaborating and sharing organizational knowledge.



Create a free Team
Why Teams?



Asked
3 years, 5 months ago


Modified
3 years, 5 months ago


4,109 9 9 gold badges 33 33 silver badges 64 64 bronze badges



Sorted by:


Reset to default





Highest score (default)


Trending (recent votes count more)


Date modified (newest first)


Date created (oldest first)




4,109 9 9 gold badges 33 33 silver badges 64 64 bronze badges


Stack Overflow

Questions
Help



Products

Teams
Advertising
Collectives
Talent



Company

About
Press
Work Here
Legal
Privacy Policy
Terms of Service
Contact Us
Cookie Settings
Cookie Policy



Stack Exchange Network



Technology




Culture & recreation




Life & arts




Science




Professional




Business






Board Amateur Post Nudist
Naked Pee
Nudist Free Video

Report Page