1

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

2 Answers 2

4

use the mount command

$mount

lists all mounted file systems

2

How about:

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

4
  • Didn't work for me (Fedora 14) - just gave 'type' and then the blocksize of the last partition
    – Linker3000
    Feb 9, 2011 at 22:10
  • doesn't work on mac, fyi
    – jakeva
    Feb 9, 2011 at 22:11
  • 1
    I get better output with df -T -P | awk '{ print $1"\t"$2 }'
    – Linker3000
    Feb 9, 2011 at 22:17
  • @Linker3000, pipe that into column -t for prettier output. Jul 19, 2013 at 16:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .