Hdiutil[1] is a command line utility in macOS to Manipulate disk images (attach, verify, burn, etc).


Commands

edit
  • hdiutil attach -nomount ubuntu-18.04.3-live-server-amd64.iso. [2]
And full one line command:
hdiutil attach -nomount ubuntu-19.04-live-server-amd64.iso && mkdir -p /tmp/debian-installer && mount -t cd9660 /dev/disk2 /tmp/debian-installer && cd /tmp/debian-installer
  1. https://ss64.com/osx/hdiutil.html
  2. https://unix.stackexchange.com/questions/298685/can-a-mac-mount-a-debian-install-cd