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..
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
Post a Comment