linux quick format usb drive

C++
umount
fdisk -l to get the dev/sxxx
For the vFAT (FAT32) file system: sudo mkfs.vfat /dev/sdc1umount
fdisk -l to get the dev/sxxx
For the vFAT (FAT32) file system: sudo mkfs.vfat /dev/sdc1
Source

Also in C++: