format drive OSX command line

FORMAT:


1
diskutil eraseDisk FILE_SYSTEM DISK_NAME DISK_IDENTIFIER

EG:


1
diskutil eraseDisk JHFS+ MyVolume /dev/disk6

SOURCE: OSX-DAILY