7.2.6 hexdump
Dump the contents of a file to standard output in hex format.
Syntax
hexdump [ -j bytes | --skip-bytes=bytes ] [ -N bytes | --read-bytes=bytes ]
[ --aio=naio ] [ -x ] [{ -w | --wallet } wallet-location ]
[{ -T | --trace } trace-level ] filename
Command Options
The options for the hexdump command are:
-
filename: Specifies the file being output.
-
-j,--skip-bytes: Optionally specifies the number of input bytes to skip. -
-N,--read-bytes: Optionally specifies the number of bytes to read and output. -
--aio: Optionally specifies the number of async I/Os to use. The default value is 4. -
-x: Displays the file contents in hex notation. This is the default behavior anyway. -
-w,--wallet: Optionally specifies the path to the Exascale wallet directory. -
-T,--trace: Optionally enables tracing and sets the trace level to1(minimum tracing),2(medium tracing), or3(maximum tracing).If the
$ADR_BASEenvironment variable is set, the trace file is written to:$ADR_BASE/diag/EXC/xsh_<username>/<hostname>/trace/xsh_<date>.trcOtherwise, the trace file is written to:
/tmp/diag/EXC/xsh_<username>/<hostname>/trace/xsh_<date>.trc
Examples
Example 7-9 Dump the contents of an Exascale file
The following example dumps the contents of the file at
@MYDATA/myfile to standard output in hex
format.
$ xsh hexdump @MYDATA/myfile
Parent topic: XSH Command Reference