Quickly get fstypes of mounted devices

Sometimes I need to check fstypes of mounted volumes. The solutions provided required using grep to look for ^/dev, however with all the flags available in df I felt this could be done using just the regular args. You can use the -x arg to take off fstypes that you don’t want to appear.

$ df --output=source,fstype,target -x devtmpfs -x tmpfs -x vfat -x squashfs
Filesystem Type Mounted on
/dev/vda1 ext4 /


Quickly get fstypes of mounted devices

Leave a comment