Linux Command Directory
This directory of Linux commands is from Linux in a Nutshell, 5th Edition.
Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
Buy it now, or read it online on Safari Bookshelf.
tmpwatch
tmpwatch [options] hours directory
System administration command. Recursively remove regular files and directories in directory with access times older than hours. Specify the directory as an absolute path. This command is usually invoked by cron to remove old files in the /tmp directory.
Options
Remove all file types.
Make decision on last inode change time for files and modification time for directories instead of access time
Do not remove directories.
Force removal of read-only files (similar to rm -f).
Make decision on last modification time instead of access time.
Before deleting, attempt to use fuser to see if a file is in use.
Verbosely test command, but don't actually remove files.
Make decision on access time. (This is the default.)
Print more details. Use two times to further increase the detail of the output.
Skip the specified path, the absolute path of a directory or file.




