1. 先找出命令所在的绝对路径
for example : whrereis ls
[root@flydream glibc_install]# whereis ls
ls: /bin/ls /usr/share/man/man1/ls.1.gz /usr/share/man/man1p/ls.1p.gz
2. rpm -qf /bin/ls
[root@flydream glibc_install]# rpm -qf /bin/ls
coreutils-8.12-6.fc16.i686