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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -