How can I quickly check the filesystem of the partition? Can I do that by using
Yes, according to man
df you can:
-T, --print-type print file system type
Another way is to use the
mount command. Without parameters it lists the currently mounted devices, including their file systems.
In case you need to find out only one certain file system, is easier to use the
-f option instead of parsing out one value from the above mentioned commands' output.
If the filesystem is not mounted (but if it is as well):
blkid -o value -s TYPE /dev/block/device
file -Ls /dev/block/device
You'll generally need read access to the block device. However, in the case of
blkid, if it can't read the device, it will try to get that information as cached in
lsblk -no FSTYPE /dev/block/device
will also give you that information, this time by querying the
udev data (something like