Linux Tricks
Print by Hexadecimal Representation
xxd
xxd is built-in Linux. create a file with hex representation. For example:
echo "00: 68 65 6c 6c 6f" > xxd_hexconvert to raw bites with xxd:
xxd -r xxd_hexprintf
printf "\x68\x65\x6c\x6c\x6f"echo
echo $'\x68\x65\x6c\x6c\x6f'python3
python3 [or python] may not exist on the machine.
python3 -c "print('\x68\x65\x6c\x6c\x6f')"If you don't want unreadable characters to be interpreted as UTF-8 with python3 use this instead:
Other
http server with python
Last updated
Was this helpful?