rmnfs Command

Purpose

Changes the configuration of the system to stop running NFS daemons.

Syntax

/usr/sbin/rmnfs [ -I | -N | -B ]

Description

The rmnfs command changes the current configuration of the system so that the /etc/rc.nfs file is not executed on system restart. In addition, you can direct the command to stop NFS daemons that are currently running.

Flags

Item Description
-B Removes the entry in the inittab file and stops NFS daemons that are currently executing. This flag is the default.
-I Removes the entry in the inittab file that starts NFS daemons on system restart.
-N Stops immediately NFS daemons and does not change the inittab file.

Examples

To stop all of the NFS daemons immediately, enter:

rmnfs -N

This command will not change the inittab file.