
拡張子 (かくちょうし、extension)とは、 ファイルの名前( ファイル名 )の末尾につけられたファイルの種類を識別するための文字列 。 Extension (spur of the moment angle, extension) and the name of the file (name of file) to a string identifying the type of file attached to the end of the.
目次 Contents |
通常、ファイル名の本体と拡張子は "."( ピリオド 、ドット)で区切られる。 Usually, the body of the file name extension is "." (Dot, dot) is separated. 拡張子はアルファベットと数字の組み合わせで、歴史的には3文字以内が好まれたが、それ以上の場合もある。 Extension is a combination of numbers and letters, which have historically favored the three characters, sometimes more than that.
拡張子は、 オペレーティングシステム (OS)においてファイルの判別のために任意につけられるもので、必ずしも必須ではない。 Extension, the operating system (OS) which are attached to any file to determine in, is not necessarily required.
拡張子が適切でない場合は、システムまたはアプリケーションソフトウェアの動作に影響を及ぼす場合がある。 If the extension is not appropriate, which may exert effects on the behavior of software systems or applications. 逆に、これを応用して、拡張子を変更することで、バックアップとして利用したり、動作の変更を行うこともある。 Conversely, to apply this, change the extension to, or used as a backup, and sometimes make a change in behavior.
Windowsなどの一部のシステムでは、システムの動作のトリガーに拡張子を用いている。 Windows on some systems, such as the extension is used to trigger the operation of the system. .tar.gzのように複数のピリオドで区切っているケースもあるが、最後のピリオド以降を拡張子と判断するシステムが一般的である。 .tar.gz is that in some cases more than one, separated by periods, such as the system is generally considered an extension after the last period.
Mac OSでは、OSレベルでは各ファイルに埋め込まれたクリエータとファイルタイプで識別するシステムを持っている。 Mac OS does, OS-level system has to identify the file type and creator embedded in each file. Mac OS Xでは拡張子も利用して動作するようになり、 Mac OS X v10.4 TigerからはUniform Type Identifier (UTI)なる枠組みでデータの種類を判別するようになった。 Mac OS X users will also have to work in extension, Mac OS X v10.4 Tiger from the Uniform Type Identifier (UTI) was to determine which type of data in the framework.
UNIX系OSではファイル名の終端でファイルの種類を表す慣習があり、一般にはsuffixと呼ぶが、必ずしもピリオドで区切るとは限らない。 UNIX-based OS that represent the types of files in the convention at the end of the file name, the suffix is commonly referred to, and not always separated by periods. カンマで区切る「 ,v 」や、特に区切り文字使わずに「 - 」や「 ~ 」や「 rc 」を付けるケースもある。 Separated by a comma ,v and especially without delimiter - or ~ or rc in some cases give. これはあくまでも整理上の便宜であってシステム上意味はない。 This means organizing the actual national classification system is not even on convenience. ただしmakeコマンドがsuffixに基づいたルールに従って動作したり、lsコマンドが色分けして表示するようなケースはある。 But the command is make or suffix based on work rules, ls such cases to have color-coded commands. またデスクトップ環境であるKDE 、 GNOME 、 CDE等も拡張子に基づく動作をする。 The top environmental desk and KDE, GNOME, CDE extension to the work based on the subject.
オペレーティングシステム以外では、 MIME Typeの設定に拡張子を利用していることなどがあげられる。 Outside the operating system, MIME Type, etc. that will give use the extension settings. Apache HTTP Serverはindex.ja.htmlとindex.html.jaの両方を「日本語(ja)のhtmlファイル」と判断する。 Apache HTTP Server is index.ja.html and index.html.ja both the "Japanese (ja) of the html file" and judge. 最後尾でなくても拡張子として判断する一例である。 As an example of the extension can not be determined last.
こうしたことから、一部のシステムの概念であった拡張子は、現在は広い範囲で使われていることがわかる。 For this reason, the concept of system extension was part of the shows that are currently used in a wide range.
拡張子は、もともとはDECのオペレーティングシステム(OS)に利用されていた(たとえば、TOPS-10、OS/8やRT-11)。 Extension was originally DEC's operating system (OS) was used (for example, TOPS-10, OS / 8 and RT-11). その後、 CP/Mでも採用された。 Then, CP / M was also adopted. CP/Mのファイル名は8+3バイトの構成になっており、後ろの3バイトが拡張子と呼ばれた。 CP / M is 8 +3 file name and byte is configured, the extension was called back three bytes. さらにCP/Mと互換性を取るため、 DOSやOS/2 、Windowsなどに受け継がれた。 More CP / M to get a compatible, DOS and OS / 2, and Windows was passed. 現在のWindowsでは3バイトの制限はない。 Current three-byte limit is not in Windows.
より詳細な拡張子の一覧についてはWiktionary 拡張子を参照。 For a list of further extension of the reference Wiktionary extension.
Windowsにおいては、拡張子とアプリケーションソフトウェアの関連付けという機能があり、拡張子の種類によってそのファイルを処理するアプリケーションを選択することが可能である。 Windows in, there are features of the software associated with the extension and application, it is possible to select an application to handle the file type by extension. ただし、設定次第でファイル名の拡張子を表示しないようにできるため、 コンピュータウイルスなどがこれを悪用する場合がある。 However, because you can not view the extension as the file name depending on configuration, may exploit this and computer viruses. 例えばLOVE-LETTER-FOR-YOU.TXT. vbsという名前のファイルはそのような環境ではLOVE-LETTER-FOR-YOU.TXTとのみ表示され、一見テキストファイルに見える。 For example, LOVE-LETTER-FOR-YOU.TXT. Vbs file named in such an environment is LOVE-LETTER-FOR-YOU.TXT and appear only visible to text at first glance. これをテキストファイルだと思って実行すると、実際にはVBScriptが起動し、ウイルスなどの被害に遭うのである。 I think you run this text file, in fact, VBScript starts, and the virus is being victimized.
また、一部のWindowsではUnicodeの制御文字の一つであるU+202E(RIGHT-TO-LEFT OVERRIDE)をファイル名に使用することで、拡張子を末尾以外の場所に表示させることが可能である。 Also, some Windows, Unicode control characters, one of U +202 E (RIGHT-TO-LEFT OVERRIDE) by using a file name, it is possible to display a location other than the end of the extension there is. 例えばSAMPLE-(U+202E)TXT. EXEというファイル名はSAMPLE- EXE .TXTと表示され、一見テキストファイルに見える。 For example, SAMPLE-(U +202 E) TXT. EXE file name is SAMPLE-EXE. TXT is displayed, the text appears at first glance. これをテキストファイルだと思って実行すると、実際にはEXEファイルが実行されることになり、前記同様の問題が発生する。 I think you run this text file, the actual EXE file will be executed, said similar problems occur. このように、拡張子を誤読させる他要因との複合技で問題を生ずることもある。 Thus, some techniques that caused the problem in a complex with other factors to be wrongly extensions.
