File Associations
Hi all,
I've been browsing some books from the library and looking at some screen shots of 'konqueror' and seen .jpg and .gif files amongst others which obviously proves that these extensions are recognised. Also however, there are files which appear to have no extension and a number of README files. eg. Readme.config, Readme.dri, Readme.sis etc. (I am assuming here that files named Readme are text files which can be read). Now coming, nay fleeing, as I am from windows, I would expect the extensions of these files to be the same ( e.g. txt) so they could be opened with the same app. Am I wrong or is there a different method of associating files? Please note that I don't have a Linus system as such but it is in the post as I speak! (Red Hat 9) Thanks |
KDE looks at the contents of the file and decides what would be good to us to open it. based on it's MIME type, I think.
|
Linux can use 2 methods to identify file types:
1. Magic Number- a hex code embedded near the beginning of the file. The various registered codes are listed in /usr/share/magic. 2. File extensions- Linux can use file extensions to determine filetype. The extention associations are buried in some deep dark file whose name I've forgotten. |
hi
the bottom line is file extensions are irrelevant. create a file with a .txt extension then its mime type/magic number becomes text. renaming it doesnt doesnt change the filetype. you can find it out by file filename in command line in KDE right click and view properties. you can also change the filetype in the context menu. Gnome should have similar options regards rahul sundaram |
Quote:
:) |
Thank you all very much.
|
You're welcome. :)
|
All times are GMT -5. The time now is 08:18 PM. |