format terminal mac
//find disk identifier using...
diskutil list
//something like /dev/disk1,2,3.... should be your disk identifier
diskutil eraseDisk FILE_SYSTEM DISK_NAME DISK_IDENTIFIER
// example formatting to ExFAT below...
diskutil eraseDisk ExFAT DiskName /dev/DiskNodeID
mahmud