三. parted(要求使用root权限)
parted ,然后执行p(即print)

对比几种查看方式。感觉还是df的更加方便直观些。parted是GNU里面的一款分区工具。查看文件系统不过是其中的一个作用罢了。而通过man df 查看发现那么中是这么描述的:
df - report file system disk space usage
其中有个参数 T
-T, --print-type
print file system type //正是要求实现的功能。嘿嘿
还可以列出指定的文件系统类型:
-t, --type=TYPE
limit listing to file systems of type TYPE
在本环境下 df --type=ext3 。执行结果如图:

还这个跟-t正好相反的参数。感觉就跟选择和反选一样。hoho :)
-x, --exclude-type=TYPE
limit listing to file systems not of type TYPE

再写的话就成了df说明书了。嘿嘿
End :)
