From 87b109d388607f79bd3bf0ed80036533293aaf87 Mon Sep 17 00:00:00 2001 From: Zheng Hao Tan Date: Tue, 20 Feb 2018 13:02:34 -0600 Subject: [PATCH] hexdump: add page (#2005) --- pages/linux/hexdump.md | 15 +++++++++++++++ pages/osx/hexdump.md | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 pages/linux/hexdump.md create mode 100644 pages/osx/hexdump.md diff --git a/pages/linux/hexdump.md b/pages/linux/hexdump.md new file mode 100644 index 000000000..b0463261c --- /dev/null +++ b/pages/linux/hexdump.md @@ -0,0 +1,15 @@ +# hexdump + +> An ASCII, decimal, hexadecimal, octal dump. + +- Print the hexadecimal representation of a file: + +`hexdump {{file}}` + +- Display the input offset in hexadecimal and its ASCII representation in two columns: + +`hexdump -C {{file}}` + +- Display the hexadecimal representation of a file, but interpret only n bytes of the input: + +`hexdump -C -n{{number_of_bytes}} {{file}}` diff --git a/pages/osx/hexdump.md b/pages/osx/hexdump.md new file mode 100644 index 000000000..b0463261c --- /dev/null +++ b/pages/osx/hexdump.md @@ -0,0 +1,15 @@ +# hexdump + +> An ASCII, decimal, hexadecimal, octal dump. + +- Print the hexadecimal representation of a file: + +`hexdump {{file}}` + +- Display the input offset in hexadecimal and its ASCII representation in two columns: + +`hexdump -C {{file}}` + +- Display the hexadecimal representation of a file, but interpret only n bytes of the input: + +`hexdump -C -n{{number_of_bytes}} {{file}}`