<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<META name=GENERATOR content="MSHTML 8.00.6001.18247"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=222014913-27012009><FONT color=#000080 
size=2 face=Tahoma>File extentions are a funny thing.!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=222014913-27012009><FONT color=#000080 
size=2 face=Tahoma>It is a legacy "thing" from M$, AFAIK.!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=222014913-27012009><FONT color=#000080 
size=2 face=Tahoma></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=222014913-27012009><FONT color=#000080 
size=2 face=Tahoma>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&nbsp;niceer to report the right content of 
the file rather than just judging it by its name. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=222014913-27012009><FONT color=#000080 
size=2 face=Tahoma></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=222014913-27012009><FONT color=#000080 
size=2 face=Tahoma>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=222014913-27012009></SPAN>&nbsp;</DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> mailinglist-bounces@ilug-cochin.org 
[mailto:mailinglist-bounces@ilug-cochin.org] <B>On Behalf Of </B>AZAD 
NIKARTHIL<BR><B>Sent:</B> 27 January 2009 13:34<BR><B>To:</B> This List 
discusses GNU/Linux &amp; GNU,GPL Software<BR><B>Subject:</B> Re: 
[ILUG-Cochin.org] File extensions<BR></FONT><BR></DIV>
<DIV></DIV>
<TABLE border=0 cellSpacing=0 cellPadding=0>
  <TBODY>
  <TR>
    <TD vAlign=top><BR><BR>
      <BLOCKQUOTE 
      style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px">syam 
        kumar<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Nice to hear 
        that....<BR>so there is no need of using extension in 
        linux....<BR><BR><BR>
        <DIV id=yiv190917058><A target=_blank 
        href="http://en.wikipedia.org/wiki/File_format#Magic_number" 
        rel=nofollow>http://en.wikipedia.org/wiki/File_format#Magic_number</A><BR>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).<BR><BR>Anirudh S<BR><BR>
        <DIV class=gmail_quote>On Tue, Jan 27, 2009 at 11:50 AM, Syam Kumar R. 
        <SPAN dir=ltr>&lt;<A target=_blank href="mailto:syamkumar@gmail.com" 
        rel=nofollow>syamkumar@gmail.com</A>&gt;</SPAN> wrote:<BR>
        <BLOCKQUOTE 
        style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
        class=gmail_quote>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.<BR><FONT color=#888888><BR 
          clear=all>--<BR>Syam Kumar R.<BR><A target=_blank 
          href="http://www.webmasterview.com/" 
          rel=nofollow>http://www.webmasterview.com/</A></FONT>
          <DIV>
          <DIV></DIV>
          <DIV class=Wj3C7c><BR><BR><BR>
          <DIV class=gmail_quote>On Mon, Jan 26, 2009 at 9:27 PM, Sreejith K 
          <SPAN dir=ltr>&lt;<A target=_blank href="mailto:sreejithemk@gmail.com" 
          rel=nofollow>sreejithemk@gmail.com</A>&gt;</SPAN> wrote:<BR>
          <BLOCKQUOTE 
          style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
          class=gmail_quote>Correct..........<BR><BR clear=all>Sreejith 
            K<BR>Web: <A target=_blank href="http://sreejithemk.net" 
            rel=nofollow>http://sreejithemk.net</A><BR><BR><BR>
            <DIV class=gmail_quote>
            <DIV>
            <DIV></DIV>
            <DIV>On Mon, Jan 26, 2009 at 8:30 AM, AZAD NIKARTHIL <SPAN 
            dir=ltr>&lt;<A target=_blank href="mailto:azadnikarthil@yahoo.co.in" 
            rel=nofollow>azadnikarthil@yahoo.co.in</A>&gt;</SPAN> 
            wrote:<BR></DIV></DIV>
            <BLOCKQUOTE 
            style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
            class=gmail_quote>
              <DIV>
              <DIV></DIV>
              <DIV>
              <TABLE border=0 cellSpacing=0 cellPadding=0>
                <TBODY>
                <TR>
                  <TD 
                  style="FONT-FAMILY: inherit; font-size-adjust: inherit; font-stretch: inherit" 
                  vAlign=top>Those people who like to add comment on this 
                    topic can qoute ur comment...<BR><BR>File extension is just 
                    a string similar to the name of the file...<BR>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..<BR><BR>Am i 
                    correct...<BR><BR>Is there any Other intentions behind the 
                    file extensions..<BR><BR>Plz Quote ur comments on this 
                    topic<BR></TD></TR></TBODY></TABLE>
              <DIV><BR>
              <HR SIZE=1>
              Connect with friends all over the world. <A target=_blank 
              href="http://in.rd.yahoo.com/tagline_messenger_1/*http://in.messenger.yahoo.com/?wm=n/" 
              rel=nofollow>Get Yahoo! India 
              Messenger.</A></DIV><BR></DIV></DIV>_______________________________________________<BR>Mailinglist 
              mailing list<BR><A target=_blank 
              href="mailto:Mailinglist@ilug-cochin.org" 
              rel=nofollow>Mailinglist@ilug-cochin.org</A><BR><A target=_blank 
              href="http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org" 
              rel=nofollow>http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org</A><BR><BR></BLOCKQUOTE></DIV><BR><BR>_______________________________________________<BR>Mailinglist 
            mailing list<BR><A target=_blank 
            href="mailto:Mailinglist@ilug-cochin.org" 
            rel=nofollow>Mailinglist@ilug-cochin.org</A><BR><A target=_blank 
            href="http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org" 
            rel=nofollow>http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV><BR>_______________________________________________<BR>Mailinglist 
          mailing list<BR><A target=_blank 
          href="mailto:Mailinglist@ilug-cochin.org" 
          rel=nofollow>Mailinglist@ilug-cochin.org</A><BR><A target=_blank 
          href="http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org" 
          rel=nofollow>http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org</A><BR><BR></BLOCKQUOTE></DIV><BR><BR 
        clear=all><BR>-- <BR>Orbis Non Sufficit<BR></DIV><PRE>_______________________________________________<BR>Mailinglist mailing list<BR>Mailinglist@ilug-cochin.org<BR>http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org<BR></PRE></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR><!--2-->
<HR SIZE=1>
</HR>Unlimited freedom, unlimited storage. <A 
href="http://in.rd.yahoo.com/tagline_mail_2/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/">Get 
it now</A></BODY></HTML>