Create an ISO File from Folder or DVD

To make an .ISO file from a folder use the following command


hdiutil makehybrid ~/Desktop/someFolder -iso -joliet -o ~/Desktop/image

This would make an ISO called image.iso on your Desktop, using the contents of the folder Desktop/someFolder to create the ISO.