answersLogoWhite

0


Best Answer

The simple answer is that Unix does not use extensions for program associations. Everything in Unix is a file, whether it is a device, a data file, or a program. In Unix it is controlled by permissions, primarily the execute permission.

Also, by checking the first block of a file for its content we can determine what program to use with a file (usually in a graphical mode).

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

A file extension identifies the type of data contained in the file, and enables the operating system to choose an appropriate application to open the file, without needing to examine the data.

Examples:

  • file.jpg should contain an image, compressed using JPEG compession, and can be opened using a graphics program
  • file.wav should contain sound, in Waveform Audio File format, and can be opened by a sound or multimedia application
  • file.csv should contain comma-separated text, and can be opened by a text editor, or spreadsheet software
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why do file names have file extensions?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Do folders have file extensions?

No, folders usually do not have file extensions, but they could have if you like. Usually only files have extensions, to indicate the contents of the file.


What is a misconception of file names beginning with Windows 95?

only Dos-based operating systems use dot-three file extensions


What are files names and file extensions separated by?

Every computer file has some extentions like .html, .txt, .xls etc For example when you create a text file using Notepad, say anil.txt Here anil is the file name and .txt is the extension.


Why is it possible to save a C file with a different extension name?

Because for the text editor (and the operating system) there is no such thing as 'C file' only 'file', and files can have any names and extensions.


What are the default file extensions for ASCII text file?

There are no set file extensions for an ASCII text file, however one that is commonly used is .txt


Are three character extensions still necessary with the long file names starting with windows 95 and later?

File extensions are still necessary on Windows. They are no longer limited to three characters on FAT32 and NTFS file systems, though most system files were named with three character extensions in case someone wanted to use FAT16, and many are still named this way for backwards-compatibility purposes.


What rules must be followed for creating my own file extensions for my own program's output files?

Rules for file extensions are based mainly on the underlying operating system and/or file system. Generally speaking, file extensions are just a part of the file name, and can be set to whatever you like.


What the Florida file extensions are used for in Floridash movie development?

What do file extensions like avi, dv, dvd, mpeg mean?


What file extensions are used to identify command shell scripts?

For windows, you might use .cmd, .bat as common file extensions. Unix doesn't use file extensions as associations, so no file extension needs to be used in the Unix environment. A shell script in Unix is simply a text file with any name that is readable and executable. However, file extensions are typically used in Unix as a documentation aid that states that the file is a shell script. Common extensions are .sh, .csh, .ksh, .tcsh, .zsh, etc.


How long are file extensions?

File extensions can range from 1 letter to 7 letters. For example ".A" used with Unix library or ".TORRENT" which stores metadata used for BitTorrent, and even double file extensions such as ".TAR.GZ" formed when a ".TAR" is compressed with a ".gzip".


What is a file extension How many letters does it have?

File extensions tell the computer what kind of program was used to create it, and are usually three letters. Common file extensions are .txt .doc .wps


How does Windows graphically distinguish between file types?

Different file types have different file extensions. This is the three letters, after the dot in the file name. eg. *.exe is an executable file *.doc is a document file, used by windows Word. *.txt is a text file, opened by various word processors or notepad. Windows keeps a list of known file extensions and open the appropiate program when the file is clicked on. If windows does not know what to use to open it, it will have a generic icon and will prompt you for a program to open it, when you click on it. Be aware that Windows can hide the file extensions, so you won't be able to see it in file lists. You can change this. In explorer, click on 'tools' at the top of the window, then 'folder options', then 'view'. Down the list, you will see a tick box that hides known file extensions. Un-tick it, to see extensions in file lists. On the next tab 'File Types', you can see a list of all the know file extensions and the programs they are associated with.