To stop NFS using the command line, type the following command: sh /etc/init.d/nfs stop
When NFS is stopped, the resources you shared and mounted are automatically unshared and unmounted.