Don't be misled from the file extension name. Get the actual file-type using file command
Posted on: 11/26/2010 09:54 AM

Linuxers shows you how to get the actual file-type using file command

Don't be misled from the file extension name. Get the actual file-type using file command


So, a friend of mine sent me a file with extension .run.gz saying that its a pretty good game. I decided to give it a try and started to extract it, but wait! I got the error saying that it is not a gzip archive. Something was definitely wrong. I was totally confused, thinking "What the hell!!" . The mystery was finally revealed when I ran file command. It stated that the file is a "POSIX shell script text executable". In simple words, I just had to execute the file.



Printed from Linux Compatible (http://www.linuxcompatible.org/news/story/dont_be_misled_from_the_file_extension_name_get_the_actual_file_type_using_file_command.html)