4.1. Identifying File-Naming Conventions
File-naming conventions have undergone several changes over the years. In this section, you get a look at where they have been and where they are now. You also take a look at the differences between filenames and directory entries.
When MS-DOS was the premier OS on the market, it set the standard of the eight-dot-three (8.3)–character filename. This file system was created by using 32 character fields (bytes) for the filenames. If you work out the math, you're probably wondering where the extra characters are. Well, 8 plus 3 is 11, and that leaves 21 outstanding characters (bytes). Table 4-1 summarizes how each byte is used.
NOTE
The File Allocation Table (FAT) is an index on your file system that holds a pointer to where each file is stored on your hard drive. On an NTFS (NT file system), this is called the Master File Table (MFT). To move a file on a file system, you only need to change its reference in the table, and not its location in the file system.
Use | Size |
---|---|
Filename | 8 bytes |
Extension | 3 bytes |
Attribute | 1 byte |
Reserved | 10 bytes FAT 32 uses two of these bytes. |
Time | 2 bytes |
Date | 2 bytes |
First cluster | 2 bytes |
Size | 4 bytes |
|
Get CompTIA A+® Certification All-In-One For Dummies®, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.