I'm reading about find
and for one of the tests (-cnewer file) it reads:
File's status was last changed more recently than file was modified.
What is the file's status? It's obviously a date, but in general what does it mean?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI'm reading about find
and for one of the tests (-cnewer file) it reads:
File's status was last changed more recently than file was modified.
What is the file's status? It's obviously a date, but in general what does it mean?
It's referring to the time when the inode of the file was last changed. In the context of -cnewer
of find
, status means inode.
You can read more about inodes, what they are and what they contain.
ls -lai
). The inode number doesn't change when you rename or write to a file, so what would change the inode? fsck
?
find
and all other tools refer to these changes of inode contents not the inode number of the file.....