Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted

use the mount command

$mount

lists all mounted file systems

share|improve this answer
add comment

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
1  
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
add comment

Your Answer

 
discard

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.