Hexdump reverse command

0 votes
The hexdump command converts any file to hex values.

But what if I have hex values and I want to reverse the process, is this possible?
Apr 20, 2022 in Linux Administration by Edureka
• 13,690 points
1,014 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.
0 votes

If you deal with the command line, you've probably used hexdump or od to dump binary files, but what do you do if you have a hex dump and want to convert the data to binary? If your requirements aren't too complicated, the solution could be xxd. xxd can dump binary files in the same way that hexdump and od can, but it can also do the opposite: convert a hex dump to binary.

xxd outputs data in a reasonably conventional hex dump format when executed with merely a file name:

  # xxd bdata
  0000000: 0001 0203 0405  

You can now convert the hex dump back to binary by pipeing the output back to xxd with the -r option and redirecting it to a new file:

 # xxd bdata | xxd -r >bdata2
  # cmp bdata bdata2
  # xxd bdata2
  0000000: 0001 0203 0405  

answered Apr 27, 2022 by Edureka
• 13,690 points

edited 5 days ago

Related Questions In Linux Administration

–1 vote
1 answer

How to use help command for ls?

The help command is limited and it ...READ MORE

answered Jan 3, 2019 in Linux Administration by Omkar
• 69,220 points
3,654 views
–1 vote
1 answer

How to use help command

The help command is limited and it ...READ MORE

answered Jan 11, 2019 in Linux Administration by Omkar
• 69,220 points
723 views
0 votes
1 answer

setting a variable output from a bash command

You can use $(command), which in my ...READ MORE

answered Feb 15, 2019 in Linux Administration by DareDev
• 6,890 points
2,720 views
0 votes
1 answer

Argument receiving error for rm command

Bash actually expands the asterisk to every ...READ MORE

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

To attach a file using mail command on Linux

$ echo | mutt -a syslogs.tar.gz admin@domain.org READ MORE

answered Jun 28, 2019 in Linux Administration by Upasana
• 8,620 points
3,026 views
0 votes
1 answer

Can I analyze a program's core dump file with GDB when it has command-line parameters?

You can simply use of GDB, to debug ...READ MORE

answered Jul 1, 2019 in Linux Administration by Shubham
• 13,490 points
8,231 views
0 votes
1 answer

Command to tar directory excluding certain files/folders

$ tar --exclude='./folder' --exclude='./upload/folder2' -zcvf /backup/filename.tgz . Try ...READ MORE

answered Jul 13, 2019 in Linux Administration by Shubham
• 13,490 points
1,361 views
0 votes
1 answer
0 votes
1 answer

How to execute a linux command repeatedly after a set time?

To watch the step every say 30 ...READ MORE

answered Jul 26, 2019 in Linux Administration by ajs3033
• 7,300 points
1,159 views
0 votes
1 answer

What is the difference between ctrl z and ctrl c in command line?

Hi@akhtar, Generally, these two commands are used to ...READ MORE

answered Feb 24, 2020 in Linux Administration by MD
• 95,460 points
48,068 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