Symbolic Link Help

Hello All,

This may be a silly question to some but I am really stuck.

Is there a way to reverse the following;

sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh

It was part of a driver compile/installation procedure by Digi for Ubuntu stating that dash isn't supported and a symbolic link to bash is needed. Now my bash scripts don't seem to be working correctly.

Please advise if this should be posted elsewhere.

Thanks everyone.

There's no command to undo an rm. You'll have to restore it from backup or, if you have an identical system handy, borrow a copy from it. Be sure to delete your /bin/sh symlink first, don't just overwrite it, or you might end up overwriting bash itself too!

My suggestion for next time would be to never, ever delete a system-critical file like sh. Move it if you must, but don't delete.

Thanks Corona...

Interestingly enough something in the back of my head said don't rm it. I took a look on another box I have setup and surprisingly sh has a symbolic to dash in Ubuntu. Phew!

I will certainly keep your suggestion in mind next time and should have known better with respect to files in the bin dir.