How to check the size of a pendrive?
You can check the size of your portable memory with this command:
df -h | grep -i /dev/sdb1
you will get output like this:
/dev/sdb1 2.0G 1.9G 90M 96% /media/988A-BCD0
device, size, amount of space occupied, free space, percentage of space occupied, mount point