URGENT: I destroyed bash
Thinking it was a directory, I tried to copy a shell script file to it, so I ended up overwriting /bin/bash. Now what do I do?! I'm lost..I'm afraid to turn off the computer.
-thanks in advance |
Get the bash package and re-install it.
|
Thanks, but how do I do that? I can't even log in.
|
Just boot up with CD1. Mount your existing root partition (assuming it is hda1):
mount /dev/hda1 /mnt Then copy the bash binary from the CD: mv /mnt/bin/bash /mnt/bin/bash-script cp /bin/bash /mnt/bin/ |
thanks! that did the trick.
|
All times are GMT -5. The time now is 09:00 PM. |