In Linux, File-Extensions make no sense. Linux isn't like windows which judges file-types by its extension. Rather, Linux looks into the file for its content and shows you its type. The File Extensions used in Linux is just to help humans judging the file-type of the file and of-course some programs which have been designed as.
To determine a file's type in Linux, on the command line is very easy.
$ file filename
Consider this -
[nilesh@localhost ~]$ file image.png
image.png: PNG image data, 282 x 76, 8-bit/color RGBA, non-interlaced
[nilesh@localhost ~]$ mv image.png image.jpg
[nilesh@localhost ~]$ file image.jpg
image.jpg: PNG image data, 282 x 76, 8-bit/color RGBA, non-interlaced
[nilesh@localhost ~]$ mv image.jpg image
[nilesh@localhost ~]$ file image
image: PNG image data, 282 x 76, 8-bit/color RGBA, non-interlaced
The above *REAL* example makes it clear that file-extensions in Linux make no sense internally.
Recent comments
2 weeks 2 days ago
2 weeks 6 days ago
3 weeks 2 days ago
3 weeks 2 days ago
3 weeks 3 days ago
4 weeks 1 day ago
4 weeks 1 day ago
5 weeks 1 day ago
5 weeks 2 days ago
5 weeks 5 days ago