脑子短路将/bin/ps文件删除。发现ps命令没法用了。下面是恢复方法html
[root@iZm5e727lmif5lZ ~]# rpm -qf /bin/ps
procps-3.2.8-25.el6.x86_64spa
http://www.filewatcher.com/m/procps-3.2.8-25.el6.x86_64.rpm.215796-0.htmlhtm
[root@iZm5e727lmif5lZ ~]# rpm -ivh procps-3.2.8-25.el6.x86_64.rpm --force
warning: procps-3.2.8-25.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 8608cb71: NOKEY
Preparing... ########################################### [100%]
1:procps ########################################### [100%]get
完成后 ps命令就能够使用了file