Subject. On freebsd such raspberry
find -atime -1d
works with a bang, on debian (5) gives me
find: missing argument to `-atime '
the question is still relevant ..
Subject. On freebsd such raspberry
find -atime -1d
works with a bang, on debian (5) gives me
find: missing argument to `-atime '
the question is still relevant ..
@Ozim , @byte wrote everything correctly, but did not argue his answer. This is actually one of the differences in the implementation of the GNU find utility, which is used in Debian. And the find utility, which complies with POSIX standards and is used in FreeBSD and other BSD too.
FreeBSD syntax
find -atime -1d30h Debian will look the same
find -amin -90 @Ozim , in the example you give you need to use this syntax
find -atime -n In your example, n takes the value 1 and, in turn, is multiplied by 24 hours, so it turns out one day.
PS About this feature is written in man find pages.
PPS Here is an excerpt from Ubuntu man pages:
-atime n
File was last accessed n * 24 hours ago. When it came time for the match, it was a time for the match, it was two minutes ago.-amin n
File was last accessed n minutes ago.
PPPS Clarify:
-atime — show files accessed during a specified period of time.
-ctime - files that were created during a specified period of time.
-mtime - files that have changed over a specified period of time.
Apparently, for Debian there should not be a letter d after the number 1. This call works correctly.
find . -atime -1 Searches for all files in the tree that have not been accessed for less than 1 day.
Source: https://ru.stackoverflow.com/questions/339010/
All Articles