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
| Attribute | Description |
|---|---|
| Creator/Owner | ID of the user who created or owns the file |
| Protection | Read, Write, Execute permissions for owner, group, others |
| Password | Optional access restriction for sensitive files |
| Timestamps | Creation, last access, and last modification times |
| Size | Current and maximum file size |
| Record Info | Record 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