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

Ron ron at bclug.ca
Wed Nov 12 05:26:12 EST 2025


Ron wrote on 2025-11-12 02:15:

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

Second, I'm finding the date on a folder (./.git) keeps changing every 
time I take a listing:

$ ls -ltra --time=ctime  --time-style=full-iso | tail -n 1
drwxrwxr-x 8 uid1 uid1 4096 2025-11-12 02:16:38.665736822 -0800 .git/

$ ls -ltra --time=ctime  --time-style=full-iso | tail -n 1
drwxrwxr-x 8 uid1 uid1 4096 2025-11-12 02:18:13.145249214 -0800 .git/


Absolutely nothing else happened between those two invocations of `ls`, 
but the time-stamp changed.


I've tried this in other folders, and it only happens in git repos 
*with* committed files.


There are other folders in this one, also starting with a ., like .dir1, 
.dir2,...


The effect is the same with --time=mtime but *not* with atime nor 
--time=birth (which works for `ls` even if when not with `find`).



What's going on?!?




More information about the kwlug-disc mailing list