|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Novell Archives Archived content from Novell openSUSE support forums |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Gunnar Grim wrote:
> Could someone please tell a curious newbie what makes Knonqueror think > that e g the file cron is a Usenet News Message while e g cups is a> Plain Text Document! Does "cron" have the string "Path:" in it, but "cups" not? It may besomething else, but that would be my first guess. Have a look at the man pages for file(1) and magic(5) (that's "man 5 magic" from the command line if you've never looked up different manual sections before), and have a read of your /etc/magic file. Basically, something's taking a guess, by having a look at the contents of a file, and an ASCII file which contains the string "Path:" is often a news message. In this case it's getting it wrong, but you can't get it right 100% of the time! M -- "It's the small gaps between the rain that count, and learning how to live amongst them." -- Jeff Noon |
|
|||
|
Matt Gibson wrote:
> Gunnar Grim wrote: > >>Could someone please tell a curious newbie what makes Knonqueror think >>that e g the file cron is a Usenet News Message while e g cups is a>>Plain Text Document! > > Does "cron" have the string "Path:" in it, but "cups" not? It may be > something else, but that would be my first guess. > > Have a look at the man pages for file(1) and magic(5) (that's "man 5 magic" > from the command line if you've never looked up different manual sections > before), and have a read of your /etc/magic file. Basically, something's > taking a guess, by having a look at the contents of a file, and an ASCII file > which contains the string "Path:" is often a news message. In this case it's > getting it wrong, but you can't get it right 100% of the time! > > M > Thanks, Matt! Yepp, it has "Path:" in it at the very first line! |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|