how to format a pendrive in mac terminal code example
Example 1: mac fat32 command line
sudo diskutil eraseDisk FAT32 NAME MBRFormat /dev/disk1
Example 2: mac fat32 command line
diskutil list
sudo diskutil eraseDisk FAT32 NAME MBRFormat /dev/disk1
diskutil list