Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用亚马逊网络服务。我不小心删除了我的 bash。我该如何恢复它?帮助!
我尝试 init=/bin/bash 但它不起作用!
我也重新启动了我的服务器。
我只能更改目录并且可以看到路径,但是其他命令不起作用,例如 ls 不再列出文件。
如果您在 ubuntu 上,请尝试发出以下命令:
sudo apt-get install --reinstall bash
在 RHEL 上,尝试
sudo yum 重新安装 bash