xxd
Hexdump a file to stdout (POSIX, toybox)
Syntax:
xxd [-eipr] [-cglos n] [file]
Runs on:
QNX OS
Options:
- -c n
- Show the specified number of bytes per line (default 16).
- -e
- Little-endian.
- -g n
- Group bytes by adding an empty-space character every n bytes (default 2).
- -i
- Output include file (CSV hex bytes, plus C header or footer if not stdin).
- -l n
- ("el") Maximum number of bytes before stopping (default is no limit).
- -o n
- Add the specified number of bytes to display offset.
- -p
- Plain hexdump (30 bytes per line, no grouping. With
-c 0
no wrap or group). - -r
- Reverse operation: turn a hexdump into a binary file.
- -s n
- Skip to the specified offset.
- file
- The pathname of a file to use as input. Copy from stdin if no file is listed.
Description:
This utility is provided as part of the toybox package. For information on how to enable it, see toybox.
Contributing author:
Rob Landley and the toybox project (see https://landley.net/toybox/).
Page updated: