how to format usb drive with commande line on linux code example
Example: linux format usb command line
df -h
Select the correct drive
sudo umount /dev/sdc1
This command formats the drive as FAT32, you can use other formats too
sudo mkfs.vfat /dev/sdc1