How to determine what filesystem a directory exists on?
Maybe you are looking for
df .
When you are in the directory you want to know the mountpoint of?
Straphka idea to use df will work well if you add some flags like the -T that shows filesystem type, (and maybe the -P for posix compability). And to top it off we can use awk to filter the output so we only print the type output column.
df -PTh . | awk '{print $2}'
or if you like to check up on a dir called smb/media/ in your homedir.
df -PTh ~/smb/media/ | awk '{print $2}'
You can use this:
stat -f -c %T .
It outputs nfs
, ext2/ext3
or something different.