2021年4月20日 星期二

Hexdump: Covert file content to hex array.

 Hexdump can dump file content with hex format,  with parameter -e can format displaying data and it's useful in writing shell.

Example usage:

#> hexdump -v FILE -e '1/1 "0x%02X "'

Test result:






Ref:
  Hexdump man page
  https://man7.org/linux/man-pages/man1/hexdump.1.html

沒有留言:

張貼留言

Linux driver: How to enable dynamic debug at booting time for built-in driver.

 Dynamic debug is useful for debug driver, and can be enable by: 1. Mount debug fs #>mount -t debugfs none /sys/kernel/debug 2. Enable dy...