Johnny Andersson wrote: > So how does Linux know what program to open a certain file with? I > will soon > install Linux on at least one of my machines, so it would be > interesting to > know. I just would love to get rid of that file extension shit, which > annoyed me since about 1998 or so…
I could be wrong (yes, that has actually happened before <g>), but I believe it's encoded in the first few bytes of the file. Not certain about that though. In OS/2, the files have up to 64K bytes of extended attributes, so the file "knows" what applications can work with it. > > By the way, there are some cases when file extensions are needed in Linux > too, aren't there? For example .c, .g++, .h, .o, .tar etc. Doesn't an OGG > file in Linux need the .ogg extension? > That I don't know about. Also, file associations are a desktop thing. The command line doesn't know about them. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
