How to determine the type of file in Linux?

Linux has an excellent built-in utility file, which determines the type of files and a lot of other information about the files.

Suppose we have files without an extension and to view information about all the files in the current directory, execute the command:

file *

For a specific file:

file NAME
Did my article help you? How about buying me a cup of coffee as an encouragement? Buy me a coffe.

Leave a comment

Leave a Reply