Lably
Skip to content

Filename extension

Filename suffix indicating file type

  • 12 min read
  • 5 chapters

Related on Lably

Through Text file, Full stop and File system

Some file systems, such as the FAT file system used in DOS, implement filename extensions as a feature of the file system itself and may limit the length and format of the extension, while others, such as Unix file systems, the VFAT file system, and NTFS, treat filename extensions as part of the filename without special distinction.

History

The basic concept of extensions to indicate the type of file was first introduced in MIT's CTSS in 1961. This system stored two separate names for each file, file name and class name, corresponding to today's name and extension. Internally, they were stored in different fields in the file system, but to ease entry, the user specified the type using a dot, which was then removed when the file was stored. Running on the IBM 7090, each file entry had four 36-bit computer words to store the information, with the first two words containing up to 6 characters for the name and class, respectively.

IBM adopted CTSS concepts as the basis for their own time-sharing experiments at the Cambridge Scientific Center in the same MIT building where CTSS was being written. This developed into the Conversational Monitor System (originally Cambridge) for the System/360. The concept was also adopted early on by DEC's experiments in time-sharing on the PDP-6 and it's follow-on, the PDP-10. The later became TOPS-10, one of DEC's main offerings into the 1980s, followed by RT-11. It was DEC's versions that inspired later microcomputer operating systems to adopt the same concept, first with CP/M and then DOS.

The Multics file system took this concept further by adopting the concept of making the extension part of the filename itself, as opposed to a separated dedicated type flag. This was part of a broader expansion of the file system which included variable-length names up to 255 characters long. With names this long, there was no need to dedicate storage just to the type, and the "." was just another character in the name. Some components of Multics, and applications running on it, use suffixes to indicate file types, but not all files are required to have a suffix — for example, executables and ordinary text files usually have no suffixes in their names. It was normally the user-facing utilities that examined the name for the last dotted portion to retrieve the type, if desired. Multics was the impetus for UNIX, which followed the same pattern.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Computing and communication