is there command to show the fs on a directory?

On Solaris, is there a command which can show the file system of a specific directory?

In a script, i need to figure out whether a directory or its parent directory is mounted as "NFS".

Is there a easy way to figure it out?

Google Search Results for NFS script | The UNIX and Linux Forums

Try

stat -f .

and

stat -f -c "%T" .

(It works on linux)

Thanks for it. But it seems "df <dir name>" not show the FS...i will check the other options.

---------- Post updated at 12:55 AM ---------- Previous update was at 12:55 AM ----------

Thanks for the option. But seems "stat" not available in Solaris system

---------- Post updated at 01:06 AM ---------- Previous update was at 12:55 AM ----------

The issue is resolved by "df -n <dir name>"

Sample:

bash-3.00$ df -n /opt/test/
/opt : ufs

Great thanks all your help.