2

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?

1

1 Answer 1

1

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.

4
  • So an inode is a number that unique identifies an object in the file system (a directory, symlink, hard link, or file) (it's number not it's name, which can be seen with ls -lai). The inode number doesn't change when you rename or write to a file, so what would change the inode? fsck ?
    – leeand00
    Jan 22, 2016 at 20:13
  • @leeand00 The inode number will remain the same but the things that inode contains e.g. last modification time, permissions, ownership etc can be changed by operations as you an imagine..find and all other tools refer to these changes of inode contents not the inode number of the file.....
    – heemayl
    Jan 22, 2016 at 20:17
  • So a status change constitutes the last date that a change was made to the metadata of a file?
    – leeand00
    Jan 22, 2016 at 20:20
  • 1
    @leeand00 spot on..
    – heemayl
    Jan 22, 2016 at 20:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .