[ILUG-Cochin.org] File extensions

AZAD NIKARTHIL azadnikarthil at yahoo.co.in
Tue Jan 27 19:03:39 IST 2009



syam kumar
         Nice to hear that....
so there is no need of using extension in linux....


http://en.wikipedia.org/wiki/File_format#Magic_number
When you run the file command, the magic number is one of the items tested to find the type of the file (see man file).


Anirudh S

On Tue, Jan 27, 2009 at 11:50 AM, Syam Kumar R. <syamkumar at gmail.com> wrote:

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.


_______________________________________________


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





_______________________________________________

Mailinglist mailing list

Mailinglist at ilug-cochin.org

http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org





-- 
Orbis Non Sufficit

_______________________________________________
Mailinglist mailing list
Mailinglist at ilug-cochin.org
http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org



      Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ilug-cochin.org/pipermail/mailinglist_ilug-cochin.org/attachments/20090127/a5a28c76/attachment.html>


More information about the Mailinglist mailing list