Print 512 bytes starting at the 1024th byte

hexyl

  • A simple hex viewer for the terminal. Uses colored output to distinguish different categories of bytes.
    More information: <https://github.com/sharkdp/hexyl>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

hexyl -r {{1024}}:+{{512}} {{path/to/file}}

click the source code to copy install hexyl on any operating system with command-not-found.com