How to perform emergency recovery of rm-rf / bin/bash
This article will explain in detail how to carry out the emergency recovery of rm-rf / bin/bash. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.
Rm-rf / bin/bash
Unable to switch the user's home directory
Domain is not normal
Environment variable
Restart failed to start
Mount ISO to enter rescue mode
Mount
Chroot / mnt/sysimage/
Ssh root@11.11.165.120
Scp / bin/bash / bin/
Echo redhat | passwd-- stdin root
Touch /. Autorelabel
Exit
Exit
Reboot
You can also mount a CD and install a bash package.
This is the end of the emergency recovery of rm-rf / bin/bash. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.