[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: deleting content of /tmp



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/24/07 15:27, andy wrote:
[snip]
> I tend to leave the machine running, but am the only user. I tend to
> default to the Gnome wm altho' do use XFce4 from time-to-time. For a
> machine that has an uptime of 6 days having a handful of some 23 items
> in the /tmp is not excessive, so is probably erased on shut down or boot
> up. This question of course could be answered by simply making a habit
> of shutting down regularly, which would be better on the environment too.

lsof(1) should be brought into play here.

"Any /tmp files older than 7 days but which are not found by lsof"
seem like reasonable candidates for deletion.

- --
Ron Johnson, Jr.
Jefferson LA  USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGBa4lS9HxQb37XmcRAmBSAJ9QWcioJE6HOaHV4/AoCxdaU3XdAACfdfM2
J0ZZOaX/SfWhmeiDbp43W34=
=8YkR
-----END PGP SIGNATURE-----



Reply to: