00,10,20,30,40,50 * * * * cp /root/12 /var/12
注意修改一下路径和文件名,注意更改逗号(好像我输入的是全角,自己手工录入一下,不要copy)
find . -atime +5 -type dfind . -atime +1 -type f
-atime n
File was last accessed n*24 hours ago. When find figures out how many 24-hour periods ago the file was last accessed, any fractional
part is ignored, so to match -atime +1, a file has to have been accessed at least two days ago.
-type c
File is of type c:
b block (buffered) special
c character (unbuffered) special
d directory
p named pipe (FIFO)
f regular file
l symbolic linkthis is never true if the -L option or the -follow option is in effect, unless the symbolic link is broken. If you
want to search for symbolic links when -L is in effect, use -xtype.
s socket
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)