It looks like you’re referencing a file named something like:

and you want to write/convert it to a USB drive.

diskutil eject /dev/diskN To see what’s inside the DMG without writing to USB:

Setsyssersum.dmg To Usb: Psf Josh

It looks like you’re referencing a file named something like:

and you want to write/convert it to a USB drive.

diskutil eject /dev/diskN To see what’s inside the DMG without writing to USB: