Skip to content

Commit

Permalink
xxd: add page (tldr-pages#1424)
Browse files Browse the repository at this point in the history
  • Loading branch information
agnivade authored and sbrl committed Jul 6, 2017
1 parent 04e9d13 commit a5cd2a7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pages/common/xxd.md
Original file line number Diff line number Diff line change
@@ -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}}`

0 comments on commit a5cd2a7

Please sign in to comment.