A file extension is the last part of a typical filename, signifying what type of file it is.
File extensions are used to indicate what kind of file something is. Extensions come at the end of a filename, and are indicated by a dot (.) followed by a few characters. Example extensions include:
- .txt - A text file.
- .odt - An OpenOffice.org/LibreOffice document file.
- .png - A PNG picture file.
- .mp3 - A music file using the MP3 format.
Note that the dot does not come at the front of a filename; that is used instead to indicate that it is a hidden file/folder.
Oftentimes, a file extension is not required as part of the filename on a Linux system, as it is on a Windows system. However, it does typically make it clearer as to what the file is for.