linux - how to check if a location is on NFS or RAM -
i know if put file on /dev/shm, put on ram of server.
and if put in home directory, put on nfs.
and know there command tell if given location on nfs or maybe ram, what's command?
ex, how can sure home directory on nfs? remember using command, prints "nfs" can seen
you can use df
command show directory's mount point:
[mrsam@octopus ~]$ df -h . filesystem size used avail use% mounted on /dev/md0 178g 32g 137g 19% /home
so, current directory on filesystem that's mounted on /dev/md0.
based on device filesystem mounted on, can figure out if it's local filesystem, nfs mount, or else.
Comments
Post a Comment