How do I display which type of filesystem I am currently browsing (i.e. ext3, ext4, or xfs)?

link|improve this question

73% accept rate
feedback

2 Answers

up vote 4 down vote accepted

use the mount command

$mount

lists all mounted file systems

link|improve this answer
feedback

How about:

df -T . | awk '{ print $2 }'

link|improve this answer
Didn't work for me (Fedora 14) - just gave 'type' and then the blocksize of the last partition – Linker3000 Feb 9 '11 at 22:10
doesn't work on mac, fyi – SixSlayer Feb 9 '11 at 22:11
1  
I get better output with df -T -P | awk '{ print $1"\t"$2 }' – Linker3000 Feb 9 '11 at 22:17
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.