标签:temp not cep music rip 解决 centos7 -bash lang
误删tree命令如何恢复一、删除tree命令,tree命令不可用
[root@centos7 ~]# which tree
/usr/bin/tree
[root@centos7 ~]# rm -f /usr/bin/tree
[root@centos7 ~]# tree .
bash: tree: command not found...
二、直接yum或rpm安装将提示tree已经安装
[root@centos7 ~]# yum install tree
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
9 directories
五、yum的话可以重新安装
[root@centos7 ~]# yum --help
reinstall reinstall a package
[root@centos7 ~]# rm -f /usr/bin/tree
[root@centos7 ~]# tree -d .
-bash: /usr/bin/tree: No such file or directory
[root@centos7 ~]# yum reinstall tree -y
[root@centos7 ~]# tree -d .
.
├── Desktop
├── Documents
├── Downloads
├── Music
├── Pictures
├── Public
├── scripts
├── Templates
└── Videos
9 directories
六、当然还可以找到tree的rpm包,使用rpm2cpio和cpio -id解压包,并将tree命令移回到原来的位置
标签:temp not cep music rip 解决 centos7 -bash lang
原文地址:https://blog.51cto.com/14588917/2446729