LINUX.ORG.RU
ФорумAdmin

найти файл по времени


0

0

Привет! как найти файлы вдиректории которые созданы ну скажем озже чем 2 часа назад. Пробовал find /my/dir -atime +2 - что-то не помогает. А как оно должно быть? Спасибо.

anonymous

Цитата из man find:

-amin n File was last accessed n minutes ago.

-anewer file File was last accessed more recently than file was modified. -anewer is affected by -follow only if -follow comes before -anewer on the command line.

-atime n File was last accessed n*24 hours ago.

-cmin n File's status was last changed n minutes ago.

-cnewer file File's status was last changed more recently than file was modified. -cnewer is affected by -follow only if -follow comes before -cnewer on the command line.

Поэтому надо find /path/to/dir -amin +7200

Читайте man внимательно!

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.