Projects / stmpclean


The stmpclean utility removes old files (and old empty directories) from the specified directory. It is meant to be used to clean directories such as "/tmp" where old files tend to accumulate. stmpclean never removes files or directories owned by root, which is a feature, not a bug. Great care is taken while descending into the directory, and the operation is secure. Anything that's not a directory, regular file, or symbolic link is also left alone (because programs like screen(1) create sockets and FIFOs under /tmp and expect them to be long-lived). Unlike other programs that do the same task, stmpclean never forks and consumes limited amount of memory. If stmpclean determines a race condition it will log the situation and exit with a failure.

Operating Systems

RSS Recent releases

  •  10 Jun 2003 16:19

Release Notes: stmpclean refuses to run on relative pathnames (no need, and potentially disastrous consequences).

  •  22 Mar 2003 14:59

Release Notes: Only regular files and empty directories are deleted now. The System V sete[ug]id sequence is now supported. Hardlinked files are no longer deleted. Files with recent ctime are not deleted.


Project Spotlight

List My Apps

App lister


Project Spotlight


A lightweight SSL/TLS library supporting up to TLS 1.2 and DTLS 1.2.