|
A filename extension is an identifier specified as a suffix to the name of a computer file, often separated from the filename with a dot, or other character, that indicates a characteristic of the file contents or its intended use. Some file systems implement filename extensions as a feature of the file system itself, and may limit the length and format of the extension, while others treat filename extensions simply as a part of the filename without distinction. == Usage == Filename extensions may be considered a type of metadata. They are commonly used to imply information about the way data might be stored in the file. The exact definition, giving the criteria for deciding what part of the file name is its extension, belongs to the rules of the specific filesystem used; usually the extension is the substring which follows the last occurrence, if any, of the dot character (''example:'' txt is the extension of the filename readme.txt , and html the extension of mysite.index.html ).On file systems of mainframe systems such as MVS, VMS, and PC systems such as CP/M and derivative systems such as MS-DOS, the extension is a separate namespace from the filename. Under Microsoft's DOS and Windows, extensions such as EXE , COM or BAT indicate that a file is a program executable.The UNIX-like filesystems use a different model without the segregated extension metadata. The dot character is just another character in the main filename, and filenames can have multiple extensions, usually representing nested transformations, such as files.tar.gz . Programs transforming or creating files may add the appropriate extension to names inferred from input file names (unless explicitly given an output file name), but programs reading files mostly ignore the information; it is foremost intended for the human user. This model generally requires the full filename to be provided in commands, where the metadata approach often allows the extension to be omitted.With the advent of graphical user interfaces, the issue of file management and interface behavior arose. Microsoft Windows allowed multiple applications to be associated with a given extension, and different actions were available for selecting the required application, such as a context menu offering a choice between viewing, editing or printing the file. The assumption was still that any extension represented a single file type; there was an unambiguous mapping between extension and icon. Pre-OS X versions of the Mac OS disposed of filename-based extension metadata entirely, instead using a distinct file type code to identify the file format. Additionally, a creator code was specified to determine which application would be launched when the file's icon was double-clicked. Mac OS X, however, uses filename suffixes, as well as type and creator codes, as a consequence of being derived from the UNIX-like NeXTSTEP operating system. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Filename extension」の詳細全文を読む スポンサード リンク
|