How to view files in binary from bash?

后端 未结 12 1960
北恋
北恋 2020-11-29 14:39

I would like to view the contents of a file in the current directory, but in binary from the command line. How can I achieve this?

12条回答
  •  醉话见心
    2020-11-29 15:09

    You can open emacs (in terminal mode, using emacs -nw for instance), and then use Hexl mode: M-x hexl-mode.

    https://www.gnu.org/software/emacs/manual/html_node/emacs/Editing-Binary-Files.html

提交回复
热议问题