Find all files older than one minute

719016

How can I use find to select files that have been written and not modified in the last minute?

I know I can do it the other way around, find files modified in the last 60 seconds with -mtime -60s, but I want the ones that haven't been modified in the last 60 seconds.

I use Linux and get this error if I use seconds:

find ??/ -mtime +60s -name blah.tsv
find: invalid argument `+60s' to `-mtime'
Daniel Beck

Use find /path -type f -mtime +60s

The - just before the digits is not a regular "argument dash", but means "less than". + then is "more than".

From man find:

All primaries which take a numeric argument allow the number to be preceded by a plus sign (``+'') or a minus sign (``-''). A preceding plus sign means ``more than n'', a preceding minus sign means ``less than n'' and neither means ``exactly n''.

It should be noted that for exactly n, the time is rounded. So 1 (1 day) does not mean 86400 seconds.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Find Files (Strictly) Older than Another File

분류에서Dev

Accidentally deleted all files older than 7 days

분류에서Dev

How to delete all files that match a pattern (or older than..) except the newest file that matches the pattern?

분류에서Dev

How to list files older than a day with "2015" in filename?

분류에서Dev

Powershell script to delete files older than x days, but not folders

분류에서Dev

Why is the PPA version of LibreOffice-fresh older than the one on the site?

분류에서Dev

Find the number of files that contains specific attributes assigned to more than one element

분류에서Dev

MySQL - Enumerate all rows within a minute and keep the first one

분류에서Dev

Find all files in a directory with an extension, and allow user to choose one to be set to a variable in TCL

분류에서Dev

Find all files with a Python Shebang

분류에서Dev

Script to find files less permissive than 750?

분류에서Dev

Deleting older log files

분류에서Dev

Find all files that are NOT of a specific type/extension in folder?

분류에서Dev

Find all files Added by git user

분류에서Dev

find all files and lines that contains a specific string

분류에서Dev

POSIX find all non readable files

분류에서Dev

Remove all files/directories except for one file

분류에서Dev

Files getting reverted to older version

분류에서Dev

Bash - Find - move files bigger than certain size

분류에서Dev

How to copy all files in all directories with specific filename to one destination?

분류에서Dev

How to find the number of elements in the array that are bigger than all elements after it?

분류에서Dev

ClearCase: Find all versions of a file newer than labelled version

분류에서Dev

javascript unix timestamp older than x

분류에서Dev

Shell script to find all types of files in a directory with their count

분류에서Dev

How can I find all files that do NOT contain a text string?

분류에서Dev

Why does 'find -delete ' delete all files in a directory recursively

분류에서Dev

Windows Search query does not find all indexed offline files

분류에서Dev

Find all animated gif files in a directory and its subdirectories

분류에서Dev

Find and convert all ALAC files to mp3 / opus / aac

Related 관련 기사

  1. 1

    Find Files (Strictly) Older than Another File

  2. 2

    Accidentally deleted all files older than 7 days

  3. 3

    How to delete all files that match a pattern (or older than..) except the newest file that matches the pattern?

  4. 4

    How to list files older than a day with "2015" in filename?

  5. 5

    Powershell script to delete files older than x days, but not folders

  6. 6

    Why is the PPA version of LibreOffice-fresh older than the one on the site?

  7. 7

    Find the number of files that contains specific attributes assigned to more than one element

  8. 8

    MySQL - Enumerate all rows within a minute and keep the first one

  9. 9

    Find all files in a directory with an extension, and allow user to choose one to be set to a variable in TCL

  10. 10

    Find all files with a Python Shebang

  11. 11

    Script to find files less permissive than 750?

  12. 12

    Deleting older log files

  13. 13

    Find all files that are NOT of a specific type/extension in folder?

  14. 14

    Find all files Added by git user

  15. 15

    find all files and lines that contains a specific string

  16. 16

    POSIX find all non readable files

  17. 17

    Remove all files/directories except for one file

  18. 18

    Files getting reverted to older version

  19. 19

    Bash - Find - move files bigger than certain size

  20. 20

    How to copy all files in all directories with specific filename to one destination?

  21. 21

    How to find the number of elements in the array that are bigger than all elements after it?

  22. 22

    ClearCase: Find all versions of a file newer than labelled version

  23. 23

    javascript unix timestamp older than x

  24. 24

    Shell script to find all types of files in a directory with their count

  25. 25

    How can I find all files that do NOT contain a text string?

  26. 26

    Why does 'find -delete ' delete all files in a directory recursively

  27. 27

    Windows Search query does not find all indexed offline files

  28. 28

    Find all animated gif files in a directory and its subdirectories

  29. 29

    Find and convert all ALAC files to mp3 / opus / aac

뜨겁다태그

보관