Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
hexdump(1)		    General Commands Manual		    hexdump(1)

NAME
       hexdump - reversible hexdump

SYNOPSIS
       hexdump [ -v ] [	-f ] [ [ -i ]  inputfile ] [ -o	outputfile ] [ -w # ]

DESCRIPTION
       hexdump is the standard utility for viewing binary files.

       Together	 with  hex2bin,	 hexdump  is also a utility for	editing	binary
       files. First you	hexdump	the file, then you modify the dump-file	in  an
       editor, then you	use hex2bin to produce the modified binary file.

OPTIONS
       -v   causes  hexdump  to	 display all input data.  Without this option,
	    any	number of output lines that are	identical to  the  immediately
	    preceding  output line (except for the input offset), are replaced
	    with a line	comprised of a single asterisk.	This makes output more
	    concise  e.g.  if  input  contains a long sequence of one repeated
	    byte value.

       -w # specifies the number of hex-dumped bytes per output	line.  Minimum
	    is	1,  maximum is 10240 but can be	changed	in the source. Default
	    is 16.

       -f   (flush-mode) causes	hexdump	 to  reflect  its  input  immediately.
	    Without this option, output	is buffered (on	ttys this means	lineb-
	    uffered, otherwise even blockbuffered).  This option is especially
	    useful,  if	you want to watch bytes	as they	are trickling out of a
	    binary device. (e.g.  /dev/mouse, /dev/ttyS1)

	    For	obvious	reasons, this implies -v.

       [-i] inputfile
	    at most one	inputfile can be given.	if none	is, then stdin will be
	    used  for input. (Giving more Inputfiles would have	no sense.)  On
	    systems where textfiles and	binaries are treated differently (such
	    as	MS-DOS)	an inputFile should be given, as input-redirection may
	    be flakey with binary data.

       -o outputfile
	    at most one	outputfile can be given. if none is, then stdout  will
	    be used for	output.

BUGS
       none  ;-)

SEE ALSO
       hex2bin(1)

COPYRIGHT
       Copyright (c) 2001 by   Andreas Leitgeb (AvL)
       (avl@logic.at)

       Permission  to  use, copy, modify, and distribute this software and its
       documentation for any purpose and without fee is	hereby	granted,  pro-
       vided  that  the	 above	copyright notice appear	in all copies and that
       both that copyright notice and this permission notice  appear  in  sup-
       porting documentation.

				  24 Mar 2001			    hexdump(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | BUGS | SEE ALSO | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=bin2hex&sektion=1&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help