How to create an ISO image from a folder in Apple macOS

How to create an ISO image from a folder in macOS

Lately I needed to create some iso images with drivers for some software. But how do I do that?
Well, pretty easy that to the Terminal and hdiutil in macOS

Open the Terminal app and in it type this code:

hdiutil makehybrid -o image.iso /path/to/folder/to/be/converted -iso -joliet 

Replace the 'image.iso' with the name of the iso that you want to create, the '/path/to/folder/to/be/converted' with the actual path to the folder that you want to convert into a image.
Hit ENTER.


That's it, Enjoy!