From 5742a07bd78e0b815fe6f04eb48e47152e842a7b Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 13 Apr 2025 21:30:54 +0200 Subject: xxd: patch binary file in hex mode --- src/binary/xxd.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/binary/xxd.md') diff --git a/src/binary/xxd.md b/src/binary/xxd.md index cd76f14..8ff7a37 100644 --- a/src/binary/xxd.md +++ b/src/binary/xxd.md @@ -34,3 +34,10 @@ >> }; >> unsigned int _proc_self_fd_11_len = 4; ``` + +## Patching binary file by hand in hex mode +```markdown + xxd /bin/ls > ls.hex + # edit binary file in hex format (ascii) + xxd -r ls.hex > ls +``` -- cgit v1.2.3