From Newsgroup: alt.os.linux.ubuntu
On Wed, 15 Apr 2015 23:21:00 +0000, William Unruh wrote:
Where wold you want them to go, esp since anywhere else they will not
get erased on every bootup. Why do they bother you? After all that is
what tmp is for, for temprary files..
By way of example, did you ever create a c:\tmp on Windows?
If you did, you'd notice that it never gets cluttered with garbage.
The only thing that goes in c:\tmp, on Windows, is what YOU put there.
Windows has four "temporary" directories (as I recall).
These four directories are in places you'd never put files in, so,
you don't have to constantly search for your files in a huge mess
of system temporary files.
Same thing here is what I want.
I just want a place to put the dozens of temporary files that I create
daily (sometimes hundreds) where I am working on the files during a
session but which I don't want to keep around after a reboot.
I think the solution that was proposed will work though.
Create a /mytmp directory which clears at reboot:
$ sudo vi /etc/fstab
tmpfs /mytmp tmpfs auto,nodev,nosuid,size=70% 0 0
$ sudo mkdir -p /mytmp && sudo chmod 1777 /mytmp && sudo mount /mytmp
$ crontab
@reboot rm /mytmp/*
--- Synchronet 3.18a-Linux NewsLink 1.113