我如何找到最近2天访问过的给定目录的子目录?我会用
$ find /home/you/$thedirectory -atime -2 -type -d
上面的命令只会给我子目录吗?
以下命令将用于查找最近给定(2)天内访问过的目录
find /home/dir -type d -atime -2
哪里,
注意:注意-type d -atime -2,以文件类型d开头的连字符(-)
有效类型参数是
b block (buffered) special
c character (unbuffered) special
d directory
p named pipe (FIFO)
f regular file
l symbolic link; this 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
D door (Solaris)