Opening a binary file in VI and XXD

0 votes
I am attempting to modify the binary data of an executable program in Linux using Ubuntu.

I have a file called a.out. I can dump it in hex using xxd a.out | less. Then in another terminal window, I run vi a.out.

Vi's data is slightly different in many places than the xxd output. Both displays addresses into the file, but the data is different. For example, at the very beginning of the executable, in xxd there are two bytes C006 which in VI display as c380

Does anyone know why they are different? It appears VI is modifying some of the dat for some reason.
Apr 13, 2022 in Linux Administration by Rahul
• 9,670 points
956 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Linux Administration

0 votes
1 answer

Capture and Save Packets in a File in Linux.

Hi@akhtar, You can use tcpdump command to save ...READ MORE

answered Oct 4, 2020 in Linux Administration by MD
• 95,440 points
5,369 views
0 votes
1 answer

Counting lines in a file/doc.

you can do this by using word ...READ MORE

answered Mar 5, 2019 in Linux Administration by DareDev
• 6,890 points
410 views
0 votes
1 answer

Writing a heredoc to a file in a script

try to use tee: tee newfile <<EOF line 1 line 2 line ...READ MORE

answered May 20, 2019 in Linux Administration by Shubham
• 13,490 points
1,318 views
0 votes
1 answer

How to extract file base name without path and extension in bash?

You don't actually have to call the ...READ MORE

answered May 31, 2019 in Linux Administration by Shubham
• 13,490 points
5,499 views
0 votes
1 answer

Redirecting output to a file and stdout

The command you want is named tee; foo ...READ MORE

answered May 31, 2019 in Linux Administration by Shubham
• 13,490 points
799 views
0 votes
1 answer

Script file name in a Bash script

$0 will give you the complete basename. ...READ MORE

answered Jun 20, 2019 in Linux Administration by Shubham
• 13,490 points
550 views
0 votes
1 answer
0 votes
1 answer

What are the modes in VI editor?

VI editor works basically on three modes, ...READ MORE

answered Mar 8, 2019 in Others by Nabarupa
1,154 views
0 votes
1 answer

What are the different modes to use a VI editor?

VI editor in linux can be use ...READ MORE

answered Mar 8, 2019 in Others by Nabarupa
4,164 views
0 votes
1 answer

Spark Kill Running Application

you can copy the application id from ...READ MORE

answered Apr 25, 2018 in Apache Spark by kurt_cobain
• 9,390 points
1,517 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP