Wednesday, July 7, 2010

Finding the type of a file!


Sometimes it so happens that you want to determine the type of a particular file. I found the following command useful when I was converting the format of certain audio files.

$ file somefile.xyz

This outputs the type of the file somefile.xyz