Text File Metadata

other than the file name, what metadata contains a plain text file?

+7
linux windows unix text metadata
source share
4 answers

I can think of a lot of metadata that even a plain text file has: creator, size, permissions, last access time, last time change, etc. - some of which probably depend on what OS you are talking about, I would suggest looking at the directory operations and / or file data structures in the system libraries of a particular OS to get a more complete list for each specific OS.

Depending on the use of the file, it may contain some metadata - for example, a script file may indicate the program used to run the script at the top, but in the general case a regular text file doesn’t work, it doesn’t contain metadata.

+4
source share

What file system? Strictly speaking, a “plain text file” does not contain metadata, not even a file name. All this is handled by the file system.

+4
source share

Depends on what you mean by metadata. The OS monitors the file name, file size, creates and modifies dates, attributes, etc. For ALL files, not just text files.

But I'm not sure I even think that metadata. It seems to me that a regular text file does not contain metadata at all.

+1
source share

On Linux (not in the contents of the file, but in the file system):

  • Access rights
  • Owner
  • Group
  • The size
  • List of references
  • Last Modified Date
  • Name

There are several others (for example, the readonly flag), but you usually don’t need them.

+1
source share

All Articles