程序员的资源宝库

网站首页 > gitee 正文

误删centos的ps命令,恢复(centos 文件恢复)

sanyeah 2024-04-01 11:34:55 gitee 3 ℃ 0 评论

脑子短路将/bin/ps文件删除。发现ps命令无法用了。下面是恢复方法

1,执行rpm -qf /bin/ps 查看ps命令所需要的rpm包

[root@iZm5e727lmif5lZ ~]# rpm -qf /bin/ps
procps-3.2.8-25.el6.x86_64

2,下载对应的rpm包

http://www.filewatcher.com/m/procps-3.2.8-25.el6.x86_64.rpm.215796-0.html

3,执行强制重新安装ps命令

[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%]

完成后 ps命令就可以使用了

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表