Nov 8, 2018

How to show file system type in Linux

df command report filesystem disk space usage and if you pass -T option it will report filesystem type.

$ df -T
Filesystem              Type     1K-blocks      Used Available Use% Mounted on
/dev/mapper/centos-root xfs      133881988  34450440  99431548  26% /

mount command shows the filesystem too:

$ mount
192.168.1.3:/backup on /backup type nfs4 (rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.4,local_lock=none,addr=192.168.1.3)