[kwlug-disc] Reminder: bash's find has option -exec

D. Hugh Redelmeier hugh at mimosa.com
Wed Nov 12 14:01:26 EST 2025


> From: Ron <ron at bclug.ca>

> First, `find` does not return creation, aka "birth" times on files:

> Yet it's supported by the file system:

> Any idea why this is or any thoughts?

I seem to remember that Research UNIX, at least up to 7th edition, didn't 
have creation time. See <https://www.unix.com/man_page/v7/5/filsys/> Only 
access time (Di_atime), filename modification time (di_mtime) and inode 
modification (Di_ctime) are present in the inode.

inode modification time useful, but non-intuitive.  You probably don't 
want it.

See stat(3type) in a current Linux for some clues.  Not the clearest 
document:

       st_ctime
              This is the file's last status change timestamp (time of 
              last change to the inode).

Find(1) says:

       -ctime n
              File's status was last changed less than, more than or 
              exactly n*24 hours ago.  See the comments for -atime to 
              understand how rounding affects the interpretation of file 
              status change times.

I think a "file's status" is just the inode.


More information about the kwlug-disc mailing list