In the previous lesson, you used touch to create a file without adding an extension. Linux filenames do not have to describe what a file contains: a file named funny.gif is not necessarily a GIF image.
Command Line · Lesson 6
file
Learn how to identify a file's likely content type without relying on its name or extension.