Today I Learned

hashrocket A Hashrocket project

File Type Info With File

Use the file utility to determine the type of a file:

$ file ASCII English text

$ file ASCII C++ program text

$ file Hello.class
Hello.class: compiled Java class data, version 52.0

The file isn't exactly a C++ program, but close enough.

See More #command-line TILs