Search This Blog

Wednesday, May 4, 2011

How to check filesystem type ?

You can run below command to check linux file system.

# df -hT
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda2     ext3     39G  1.1G   36G   3% /
/dev/sda1     ext3     99M   46M   49M  49% /boot
tmpfs        tmpfs    2.6G     0  2.6G   0% /dev/shm
none         tmpfs    2.5G  328K  2.5G   1% /var/lib/xenstored
NASSERVER01:/
export/share1
               nfs    5.3T  3.0T  2.3T  58% /var/ovs/mount/D0122C0A025346218D9E9574667D34ADNASSERVER01:/export/share2
               nfs    250G  191G   60G  77% /var/ovs/mount/DCB311A73E6E4053A116E02A47D802F8

(
-h : used for human readable output
-T : --print-type
print file system type
)



THe same command can be used for showing POXFIX output( One line)

Just append P.
# df -hTP
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda2     ext3     39G  1.1G   36G   3% /
/dev/sda1     ext3     99M   46M   49M  49% /boot
tmpfs        tmpfs    2.6G     0  2.6G   0% /dev/shm
none         tmpfs    2.5G  328K  2.5G   1% /var/lib/xenstored
NASSERVER01:/
export/share1    nfs    5.3T  3.0T  2.3T  58% /var/ovs/mount/D0122C0A025346218D9E9574667D34AD 
NASSERVER01:/export/share2 nfs    250G  191G   60G  77% /var/ovs/mount/DCB311A73E6E4053A116E02A47D802F8
 

There are more such examples @ http://www.thegeekstuff.com/2012/05/df-examples/?utm_source=feedburner&utm_medium=email&utm_campaign=Feed%3A+TheGeekStuff+%28The+Geek+Stuff%29

Please Leave us with your comments and Queries /Suggestions.
           I will try to reply asap.

2 comments:

  1. Please give us a good reference book same here... thank you

    ReplyDelete
    Replies
    1. @Vivek : Reference book on Linux? Linux File System ?

      Delete