Tweak is a curses-based hex editor created by Simon Tatham (also the creator of the famous PuTTY). This repository is a mirror with some minor changes.
Instructions tested on Mac OS X 10.8.4 (Mountain Lion)
$ git clone https://github.com/mborgerson/tweak.git
$ make
$ sudo make install
Note: The default binary installation path is /usr/local/bin/tweak
and
the man installation path is /usr/local/man/man1/tweak.1
. You may need to add
/usr/local/bin
and /usr/local/man
to your PATH
and MANPATH
environment
variables, respectively.
Full documentation is available in the manpage (or on Simon's website):
$ man tweak
Launch Tweak by simply specifying the name of the file (either an existing file or the name of the file to be created) as the first argument.
$ tweak <file>
Here are the basic commands to get you started (mostly Emacs standard):
- Arrow keys to move around (or usual Emacs movement keys)
[C-x c-c]
to exit[c-x c-i]
to toggle between insert/replace mode[c-x c-s]
to save[C-x g]
to go to a byte offset in the file[Enter]
to toggle between hex and ascii