mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 17:13:50 +02:00
xxd: add page (#1424)
This commit is contained in:
parent
04e9d13b70
commit
a5cd2a7dc7
1 changed files with 23 additions and 0 deletions
23
pages/common/xxd.md
Normal file
23
pages/common/xxd.md
Normal file
|
@ -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}}`
|
Loading…
Add table
Reference in a new issue