Linux-查看操作命令属于哪个软件包

发布时间 2023-04-15 13:36:45作者: Linux运维-Friend

CentOS:利用yum provides命令

sar命令所属的软件包为sysstat-10.1.5-19.el7.x86_64

[root@db01 ~13:02:13]# yum provides sar
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
sysstat-10.1.5-19.el7.x86_64 : Collection of performance monitoring tools for Linux
Repo : base
Matched from:
Filename : /usr/bin/sar

sysstat-10.1.5-20.el7_9.x86_64 : Collection of performance monitoring tools for Linux
Repo : updates
Matched from:
Filename : /usr/bin/sar

sysstat-10.1.5-19.el7.x86_64 : Collection of performance monitoring tools for Linux
Repo : @base
Matched from:
Filename : /usr/bin/sar

Ubuntu:利用apt-cache search命令

netstat命令所属的软件包为net-tools

root@Ubuntu1604:~# apt-cache search netstat
net-tools - NET-3 networking toolkit
gnome-nettool - GNOME 的网络信息工具
bwm-ng - small and simple console-based bandwidth monitor
libparse-netstat-perl - module to parse the output of the "netstat" command
netstat-nat - tool that display NAT connections
nicstat - print network traffic statistics
unhide - Forensic tool to find hidden processes and ports
whichman - Fault tolerant search utilities: whichman, ftff, ftwhich