How to convert vi into hex editor 1. vi -b binary 2. :%!xxd 3. Do your modifications 4. :%!xxd -r 5. :wq!