More Questions from Linux

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

Computer Science Linux Difficulty: Medium
Choose an option
  • A
    rpcinfo
  • B
    serverinfo
  • C
    NFSinfo
  • D
    infserv
  • E
    None of the above

Answer

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.

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