[ILUG-Cochin.org] File extensions

Syam Kumar R. syamkumar at gmail.com
Tue Jan 27 11:50:11 IST 2009


I don't think Linux judges file type from extensions. Applications and
Desktop environment recognises files in different ways. For example, Apache
recognises mime-type from file extension. But in Gnome, it is by file
content. You can rename a .txt file to .png or .jpg. It is still considered
a text file. Similarly, you can rename a png or jpg as a .txt file, it still
opens in your default image viewer. Just right click and open property
window, you can see that mime-type is listed correctly. The icon graphic
doesn't change either. If you create a .txt file or extensionless file with
some html or php code, it will open in your browser. Just adding
#!/usr/bin/sh in the beginning of a text file will make its icon change to a
shell script icon.

--
Syam Kumar R.
http://www.webmasterview.com/


On Mon, Jan 26, 2009 at 9:27 PM, Sreejith K <sreejithemk at gmail.com> wrote:

> Correct..........
>
> Sreejith K
> Web: http://sreejithemk.net
>
>
> On Mon, Jan 26, 2009 at 8:30 AM, AZAD NIKARTHIL <azadnikarthil at yahoo.co.in
> > wrote:
>
>>  Those people who like to add comment on this topic can qoute ur
>> comment...
>>
>> File extension is just a string similar to the name of the file...
>> only difference is that with the exetension operating system could able to
>> judge the which type is the file.... so that it could able to show u
>> standard picture of that extension.. And when u double click that icon it
>> could able to inwalk correct application program to run that file..
>>
>> Am i correct...
>>
>> Is there any Other intentions behind the file extensions..
>>
>> Plz Quote ur comments on this topic
>>
>> ------------------------------
>> Connect with friends all over the world. Get Yahoo! India Messenger.<http://in.rd.yahoo.com/tagline_messenger_1/*http://in.messenger.yahoo.com/?wm=n/>
>>
>> _______________________________________________
>> Mailinglist mailing list
>> Mailinglist at ilug-cochin.org
>> http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
>>
>>
>
> _______________________________________________
> Mailinglist mailing list
> Mailinglist at ilug-cochin.org
> http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ilug-cochin.org/pipermail/mailinglist_ilug-cochin.org/attachments/20090127/0273d3a8/attachment-0001.html>


More information about the Mailinglist mailing list