how to format a pendrive in ubuntu using terminal 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