On a Unix/Linux system, which command is commonly used to see the services running on an NFS (Network File System) server?

Difficulty: Medium

Correct Answer: rpcinfo

Explanation:


Introduction / Context:
NFS (Network File System) is widely used to share files across Unix/Linux systems. To troubleshoot or verify NFS service availability, administrators must know the command that lists running services.


Given Data / Assumptions:

  • The target is an NFS server.
  • We want to list services registered with the RPC portmapper.


Concept / Approach:

The rpcinfo command queries the RPC bind (portmapper) service, which manages NFS services. By running rpcinfo -p servername, administrators can see ports and versions of NFS-related daemons.


Step-by-Step Solution:

Open terminal.Run rpcinfo -p localhost or rpcinfo -p nfsserver.View registered RPC services like nfs, mountd, status.Confirm NFS is active and ports are open.


Verification / Alternative check:

Cross-check with systemctl status nfs-server or showmount -e servername for exports.


Why Other Options Are Wrong:

  • serverinfo, NFSinfo, infserv: not valid Linux commands.
  • None of the above: incorrect because rpcinfo is correct.


Common Pitfalls:

  • Running rpcinfo without -p lists nothing useful; always include -p.
  • Confusing rpcinfo with showmount (which only shows shared exports).


Final Answer:

rpcinfo.

More Questions from Linux

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion