7.2.9 od

Dump the contents of a file to standard output in hex format.

Syntax

od [ -j bytes | --skip-bytes=bytes ] [ -N bytes | --read-bytes=bytes ] 
   [ --aio=naio ] [ -x ] [{ -w | --wallet } wallet-location ] 
   [ -D | --debug ] filename

Command Options

The options for the od 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.

  • -D, --debug: Optionally enables debug mode.

Examples

Example 7-11 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 od @MYDATA/myfile