Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 4 down vote accepted

use the mount command


lists all mounted file systems

share|improve this answer

How about:

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

share|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 – jakev Feb 9 '11 at 22:11
I get better output with df -T -P | awk '{ print $1"\t"$2 }' – Linker3000 Feb 9 '11 at 22:17
@Linker3000, pipe that into column -t for prettier output. – glenn jackman Jul 19 '13 at 16:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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