How to view files in binary from bash?

后端 未结 12 1957
北恋
北恋 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:03

    vi your_filename
    

    hit esc

    Type :%!xxd to view the hex strings, the n :%!xxd -r to return to normal editing.

提交回复
热议问题