cleantmp.8
来自「minix操作系统最新版本(3.1.1)的源代码」· 8 代码 · 共 66 行
8
66 行
.TH CLEANTMP 8.SH NAMEcleantmp \- clean out a tmp dir.SH SYNOPSIS.B cleantmp.RB [ \-d "[\fIlevel\fR]]".RB [ \-i.IR file "] ...".BR \-\fIdays\fB | \-f.RI [ directory " ...]".SH DESCRIPTION.B Cleantmpremoves all files in each of the given directories and their subdirectoriesthat have not been accessed for at least.I 'days'days. Empty subdirectories are removed if their modified times are morethan.I 'days'days old..B Cleantmplooks at days as humans do, i.e. they last from midnight to midnight.Meaning that.B cleantmp -1 /tmpremoves all files that were not touched after midnight last night. This maybe very helpful, because in many cases that big file that clogs up.B /tmpwas created yesterday, but less than 24 hours ago..PPThe 'days' flag may be replaced by.B \-fcausing.B cleantmpto remove all files in the directory no matter what age. Specifying zerodays doesn't work, because it is assumed to be a mistake..PP.B Cleantmpknows that files and directories that have a name starting with a '.' arespecial and will not delete them or files within them if they are not atleast 14 days old..SH OPTIONS.TP 5.BR \-d "[\fIlevel\fR]]"Set the debug level to.I level(by default 1). Normally only errors are reported. Debug level 1 lists theactions taken on standard error, level 2 also prints the file times used,and level 3 makes.B cleantmpplayact, i.e. nothing is really removed..TP.BI \-i " file "One or more.B \-ioptions name files to be ignored. Files are not removed if they are in thelist of ignored files by either a directory entry match, or a full pathnamematch. This option is useful to keep things like named pipes that somelonglived programs foolishly put in temporary directories..SH "SEE ALSO".BR find (1)..SH BUGSDon't use '\fBcleantmp -1\fP' shortly after midnight..PPIt would be nice if one could delete files that are, say, 2 hours old..SH AUTHORKees J. Bot (kjb@cs.vu.nl)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?