Linux file command classifying files -


i need recognize type of data contained in random files. new linux , need help.

i planning use "file" command understand type of data file has. tried command , got below screenshot. have few questions below:

does 'file' command goes through content of file determine data type or @ extension of file?

what different possible answers after running 'file' command. example in below screenshot getting jpeg, iso media, ascii etc

i looked @ page felt technical..would appreciate if can provide link has simpler explanation..

enter image description here

it looks @ first few bytes of file work out sort of file is. try not scan whole file, , won't take extension account @ all.

you'll need try out see different possible answers can get, there thousands...

the useful general rule output output word "text" in refers can read text viewer, , without "text" kind of binary.

bear in mind file isn't perfect: won't know exact file type, , it'll make guess, won't right.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -