[ILUG-Cochin.org] File extensions
Dino Korah
dckorah at gmail.com
Tue Jan 27 19:25:16 IST 2009
File extentions are a funny thing.!
It is a legacy "thing" from M$, AFAIK.!
But said that, it has its benifits. When we are dealing with a huge amount
of file objects to process, like what apache would do when dealing with many
requests per second, it is optimal for its purpose to look at just the
filename ( or rather the piece of the filename after the last dot). For a
desktop software like gnome, it is niceer to report the right content of the
file rather than just judging it by its name.
So, generally in the server world we tend to use only the filename for
performance reasons, where as it is OK for a desktop software to look
deeper.
_____
From: mailinglist-bounces at ilug-cochin.org
[mailto:mailinglist-bounces at ilug-cochin.org] On Behalf Of AZAD NIKARTHIL
Sent: 27 January 2009 13:34
To: This List discusses GNU/Linux & GNU,GPL Software
Subject: Re: [ILUG-Cochin.org] File extensions
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
<http://in.rd.yahoo.com/tagline_messenger_1/*http://in.messenger.yahoo.com/?
wm=n/> 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
_____
Unlimited freedom, unlimited storage. Get
<http://in.rd.yahoo.com/tagline_mail_2/*http://help.yahoo.com/l/in/yahoo/mai
l/yahoomail/tools/tools-08.html/> it now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ilug-cochin.org/pipermail/mailinglist_ilug-cochin.org/attachments/20090127/49262d6e/attachment-0001.html>
More information about the Mailinglist
mailing list