How to tell binary from text files in linux

后端 未结 8 1047
[愿得一人]
[愿得一人] 2021-02-07 13:52

The linux file command does a very good job in recognising file types and gives very fine-grained results. The diff tool is able to tell binary files f

8条回答
  •  猫巷女王i
    2021-02-07 14:36

    You could try to give a

    strings yourfile
    

    command and compare the size of the results with the file size ... i'm not totally sure, but if they are the same the file is really a text file.

提交回复
热议问题