Wednesday, March 5, 2014

Detect filetype in terminal even without the extension

The command is:

file filename

It will give you useful information about the filetype of filename using its magic numbers. Whatever that means. Of course, man will give you other usage.

1 comment:

speedwlk said...

@Debdeep: Here is an interesting use of file command. See the end of my post here