From a5cd2a7dc7833dc786efe1d03cc8b48440ccac82 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Thu, 6 Jul 2017 21:56:44 +0530 Subject: [PATCH] xxd: add page (#1424) --- pages/common/xxd.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/xxd.md diff --git a/pages/common/xxd.md b/pages/common/xxd.md new file mode 100644 index 000000000..58c214484 --- /dev/null +++ b/pages/common/xxd.md @@ -0,0 +1,23 @@ +# xxd + +> Create a hexdump from a binary file or vice-versa. + +- Generate a hexdump from a binary file and display the output to console: + +`xxd {{input_file}}` + +- Send the hexdump output to a file: + +`xxd {{input_file}} {{output_file}}` + +- Format output in columns of 8 octets per line: + +`xxd -c {{8}} {{input_file}}` + +- Display in plain hex format without any gaps: + +`xxd -p {{input_file}}` + +- Revert a plaintext hex into binary and store it in an output file: + +`xxd -r -p {{input_file}} {{output_file}}`