bvi – binary file editor

Sponsored Link
The bvi is a display-oriented editor for binary files, based on the vi texteditor. If you are familiar with vi, just start the editor and begin to edit! A bmore program is also included in the package.If you never heard about vi, maybe bvi is not the best choice for you.

Install bvi in ubuntu

Open the terminal and run the following command

sudo apt-get install bvi

Using bvi

The screen is divided into four areas, symbolized by four different colors. The magenta area contents the addresses in hexadecimal notation. The green area contents the values of the edited file in hexadecimal notation. The red area contents the same bytes in ASCII representation. The yellow status line displays on the left side the current status messages and on the right site the current position of the cursor and the value of the byte on this address in octal, hexadecimal, decimal and ASCII notation.
You can toggle between the Hex and ASCII value of the same byte by pressing the TAB key both in command and input mode.
Command Line Options
There are some additional command line options in bvi:

-f script

This command provides a means for collecting a series of ex (colon) commands into a script file, then using this file to edit other files. Since there is no binary stream editor bsed, you can use this option to make several global changes in a binary file. You can do this of course with the source command (:so file) from within bvi too.

-b begin

This option causes bvi to load a file not from start but from address begin.

-e end

This option causes bvi to load a file not till end but till address end.

-s size

This option causes bvi not to load the complete file but only size bytes. This option can also be used to read a file reported with a length 0 like some files in the Linux /proc directory.

Sponsored Link

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *