腦子短路將/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