I like to test out a lot of linux distros, so I have a USB that I load live images onto frequently. Sometimes, though, I need it for something else, and I need to erase all the partitions on it and restore it to normal. To do this, I generally use these commands on a Windows PC:
diskpart
list disk
select disk <mydisk>
clean
create partition primary
format fs=fat32 quick
That works like a charm most days, but I don't really use Windows anymore, so I was hoping to find an Ubuntu alternative set of commands that I could use. Does anyone know what the Linux terminal equivalent of these commands are?