Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to perform emergency recovery of rm-rf / bin/bash

Shulou Source: shulou.com Published: 2022-05-31 15:31:51 10月03日 Update

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.

Tags: Content articles more knowledge articles good CD-ROMs variables patterns environment users directories quality switching references help rescue related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology NVidia Redmi Xiaomi vpn