← 返回命令列表

Linux command

nfsstat 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show all NFS statistics

nfsstat

Show server statistics

nfsstat -s

Show client statistics

nfsstat -c

Show specific NFS version

nfsstat -3

Show RPC statistics

nfsstat -r

Show mounted filesystems

nfsstat -m

Zero statistics

sudo nfsstat -z

说明

nfsstat displays statistics about NFS (Network File System) activity. It shows RPC and NFS statistics for both client and server operations. Statistics include operation counts, errors, and cache performance.

参数

-s, --server
Server statistics only.
-c, --client
Client statistics only.
-n, --nfs
NFS statistics only.
-r, --rpc
RPC statistics only.
-2, -3, -4
NFS version (v2, v3, v4).
-m, --mounts
Show mount information.
-z, --zero
Zero statistics.
-l, --list
Print statistics in list format.
-o, --since
Show statistics since last reset with nfsstat -z.
-S, --sort _field_
Sort NFS stats by field.

FAQ

What is the nfsstat command used for?

nfsstat displays statistics about NFS (Network File System) activity. It shows RPC and NFS statistics for both client and server operations. Statistics include operation counts, errors, and cache performance.

How do I run a basic nfsstat example?

Run `nfsstat` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s, --server do in nfsstat?

Server statistics only.