List the partitions on a block device or disk image

partx

  • Parse a partition table and tell the kernel about it.
    More information: <https://man7.org/linux/man-pages/man8/partx.8.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo partx --list {{path/to/device_or_disk_image}}

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