3. CentOS6.5 View the installation package corresponding to the command
[root@host ~] # which ping
/ bin/ping
[root@host ~] # rpm-qf / bin/ping
Iputils-20071127-17.el6_4.2.x86_64
First check the absolute path of the command with which, and then use the absolute path of rpm-qf to view the installation package corresponding to the command.