|
- linux - Explaining the find -mtime command - Stack Overflow
The POSIX specification for find says: -mtime n The primary shall evaluate as true if the file modification time subtracted from the initialization time, divided by 86400 (with any remainder discarded), is n Interestingly, the description of find does not further specify 'initialization time' It is probably, though, the time when find is initialized (run) In the descriptions, wherever n is
- linux - Understanding find with atime, ctime, and mtime - Unix Linux . . .
So, I understand the difference between the three ideas in the title atime -- access time = last time file opened mtime -- modified time = last time file contents was modified ctime -- changed tim
- Why does find -mtime +1 only return files older than 2 days?
I'm struggling to wrap my mind around why the find interprets file modification times the way it does Specifically, I don't understand why the -mtime +1 doesn't show files less than 48 hours old
- linux - Get mtime of specific file using Bash? - Stack Overflow
The date utility has a convenient switch for extracting the mtime from a file, which you can then display or store using a format string date -r file "+%F" # 2021-01-12 file_mtime=$(date -r file "+%F") See man date, the output of date is controlled by a format string beginning with "+" Useful format strings for comparing many dates might include: "+%j": day of year "+%s": unix epoch time
- Delete only files older than 7 days: -mtime and find - Unix Linux . . .
Like for find 's -mtime +7, m+7 would match on files whose age rounded down to the next integer number of days is strictly greater than 7, so would match on files that are 8 days old or older (a common pitfall when working with find)
- bash - find -mtime files older than 1 hour - Stack Overflow
find -mtime files older than 1 hour [duplicate] Asked 16 years, 4 months ago Modified 9 years, 8 months ago Viewed 233k times
- Delete files older than X days - Unix Linux Stack Exchange
I have found the command to delete files older than 5 days in a folder find path to files* -mtime +5 -exec rm {} \\; But how do I also do this for subdirectories in that folder?
- linux - Find files in created between a date range - Stack Overflow
I use AIX via telnet here at work, and I'd like to know how to find files in a specific folder between a date range For example: I want to find all files in folder X that were created between 01-A
|
|
|