On 30-Nov-04 Sid Boyce wrote:
As we've ranted about for many years now, it's almost impossible to download rpm's from some sites when SHIFT-Right click doesn't get you the file you want, just some html and when clicking on the link simply brings up realaudio. rhp, rhpm, pmr or something else would have been more sensible as the gods have not decreed there be a +3 suffix. Regards Sid.
The gods did not so decree, but the Devil did! (I'm old enough to
remember it happening).
More seriously, there's /etc/magic, or /usr/share/magic (depending
on the distribution), which contains several entries allowing the
true file type to be identified from the presence of characteristic
byte sequences (used by the 'file' command -- see "man file").
However, even this is not guaranteed to be perfect.
The perfect answer is for the user to know what type an individual
file really is, and invoke whatever command the user wants to
apply to that file (which may differe from occasion to occasion
for the same file). In other words, use the command line in a
discriminating manner!
Best wishes to all,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding)