operating-systems file-management

Definition

File Attributes

File attributes (metadata) are properties stored by the operating system for each file, describing ownership, security constraints, and usage characteristics.

Common Attributes

AttributeDescription
Creator/OwnerID of the user who created or owns the file
ProtectionRead, Write, Execute permissions for owner, group, others
PasswordOptional access restriction for sensitive files
TimestampsCreation, last access, and last modification times
SizeCurrent and maximum file size
Record InfoRecord length and key positions (structured files)

System Flags

File Status Flags

  • Read-only: Prevents modification or deletion
  • Hidden: Excluded from default directory listings
  • System: Marks file as critical for the OS
  • Archive: Indicates file changed since last backup
  • Lock: File currently in exclusive use
  • Temporary: Safe to delete after process terminates