What is a dd command to write the Ubuntu ISO to an external hard drive over USB? [duplicate]

Clone Ubuntu ISO to USB using dd

The obvious answer to this question is:

sudo umount /dev/sdX

sudo dd if=/path/to/ubuntu.iso of=/dev/sdX bs=4M && sync

Many people have had unpleasant experiences with dd, (me included). Gnome-Disks uses dd to do it's cloning from within a GUI.

If you have access to a Linux computer, the easiest and safest way to use dd to clone a Linux ISO to USB is to let Gnome-Disks do it.

Open disks click the three line icon upper right and select Restore Disk Image.

enter image description here

Then select the Ubuntu ISO as your Disk Image and select the external drive as Destination.

This will overwrite the entire external drive with a 2.8GB read only ISO9660 Live partition. The unused space can be converted to a FAT32 or NTFS partition. There will be no persistent partition