Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
PostgreSQL 9.3 beta: Federated databases and more
LWN.net Weekly Edition for May 9, 2013
(Nearly) full tickless operation in 3.10
Any examples of programs that put something important in there?
/tmp and /var/tmp
Posted Mar 30, 2011 20:59 UTC (Wed) by nix (subscriber, #2304)
(TBH I much prefer this over the vim habit of scattering .swp files everywhere. Emacs has a similar feature: you can drop all autosave files into a single directory without much effort.)
Posted Mar 30, 2011 21:18 UTC (Wed) by cortana (subscriber, #24596)
Posted Apr 1, 2011 17:28 UTC (Fri) by nix (subscriber, #2304)
Posted Apr 1, 2011 19:13 UTC (Fri) by dtlin (✭ supporter ✭, #36537)
- For Unix and Win32, if a directory ends in two path separators "//"
or "\\", the swap file name will be built from the complete path to
the file with all path separators substituted to percent '%' signs.
This will ensure file name uniqueness in the preserve directory.
Posted Mar 31, 2011 12:38 UTC (Thu) by NAR (subscriber, #1313)
Posted Mar 30, 2011 21:06 UTC (Wed) by fritsd (guest, #43411)
Posted Mar 30, 2011 21:12 UTC (Wed) by nybble41 (subscriber, #55106)
That said, I don't specifically know whether any common programs store data in /var/tmp which must persist across a reboot. I do know that MySQL occasionally stores certain temporary files there; these may be need for recovery after a crash or power interruption. KDE also stores cache files under /var/tmp; losing these at every reboot would be likely to negatively impact performance.
Posted Mar 31, 2011 0:02 UTC (Thu) by nicooo (guest, #69134)
Posted May 4, 2011 21:36 UTC (Wed) by nix (subscriber, #2304)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds