在终端查看文件二进制 [英] Viewing File in Binary in Terminal
本文介绍了在终端查看文件二进制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
首先第一件事情,我在Mac上通过终端ssh'ing到一台Linux机器。
First things first, I'm on a Mac ssh'ing into a Linux machine via Terminal.
我想查看当前目录中的文件的内容,但在二进制。是否有一个二进制模式,用于任何文本编辑器,比如vi或nano或之类的?
I would like to view the contents of a file in the current directory, but in binary. Is there a binary mode for any text editors like VI or Nano or the like?
推荐答案
XXD确实二进制和十六进制
xxd does both binary and hexadecimal
斌:
xxd -b file
(十六进制)
xxd file
这篇关于在终端查看文件二进制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文