Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-28-2004, 06:39 AM   #1
Gag Halfrunt
LQ Newbie
Registered: Nov 2004
Distribution: Mandrake/Knoppix
Posts: 24

Rep: Reputation: 15
Clarifying Linux & filename extensions

I've heard from a few people that UNIX-like OSes don't have file extensions (example.jpg, etc). I've never used anything other than Windows, so this seems a little odd to me.

I assume the area of the file containing information about it, and which filetype it is, is called metadata (viewing the HTML of various pages reveals "meta" tags, detailing content/author, etc).. I also assume that the information detailing what type of file it is is called the "MIME type". Is this correct?

So... if I save a plain old text file in KWrite, and email it to a Windows user, will they see it as filename.txt, or just filename? Do I need to specify a .txt, .jpg, .c, etc extension for Windows users to see it?
Old 11-28-2004, 06:44 AM   #2
Senior Member
Registered: Dec 2003
Posts: 3,161
Blog Entries: 4

Rep: Reputation: 136Reputation: 136
Actually file extensions are there and not there.

It's funny really for people coming from a windows world.

Linux doesn't use the extension to determine the file-type. It uses the mime-type which is stored in each file.

Therefore executables don't need any extensions. As long as they're marked as executables, they'll work.

When saving files from programs in Linux, you NEED to specify the extension. Therefore I hope that answers your question.

EDIT: And oh, when using KWrite and you want to be able to use the file in Windows, then you need to set the End of Line to Windows/DOS from the "Tools" menu.

Last edited by vharishankar; 11-28-2004 at 06:46 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Some LQ rules need clarifying vharishankar LQ Suggestions & Feedback 13 08-18-2005 04:42 PM
change uploaded files from filename.avi to filename.avi.html like latheesan Linux - Newbie 3 06-16-2005 04:33 AM
Linux File Extensions kompact Linux - Newbie 3 04-18-2005 09:15 AM
Mandrake & Apache2/php4.2.3 how to enable GD extensions sablecurls Mandriva 1 07-09-2004 02:35 PM
FrontPage Extensions & Mandrake david63 Linux - Software 0 05-13-2003 03:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration