How to tell binary from text files in linux

后端 未结 8 1046
[愿得一人]
[愿得一人] 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:47

    These days the term "text file" is ambiguous, because a text file can be encoded in ASCII, ISO-8859-*, UTF-8, UTF-16, UTF-32 and so on.

    See here for how Subversion does it.

提交回复
热议问题