How to tell binary from text files in linux

后端 未结 8 1038
[愿得一人]
[愿得一人] 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条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-07 14:36

    Commands like less, grep detect it quite easily(and fast). You can have a look at their source.

提交回复
热议问题