Jump to content

Deleted top line of text/code in /bin/sh file


Go to solution Solved by Rook,

9 posts in this topic

Recommended Posts

Posted (edited)

I accidentally deleted the top line of code in my /bin/sh file. Is there anyway I can get it back?

MTerminal doesn't work anymore.

Updated by Fuerza
Posted

i permanently deleted it with iFile.

okay so I didn't delete it. I just deleted the very first line of text/code. I don't know how to fix it.
Posted

You "accidentally" deleted the first row of the sh file? What are dou doing in this file?

Posted

Isn't /bin/sh a symbolic link which leads to Bash?

Did you delete the symbolic link or did you delete "bash" which is also inside the same folder.

Posted

Isn't /bin/sh a symbolic link which leads to Bash?Did you delete the symbolic link or did you delete "bash" which is also inside the same folder.

I believe I deleted the symbolic link but also deleted a line of text in sh. I didn't delete bash.

Isn't /bin/sh a symbolic link which leads to Bash?Did you delete the symbolic link or did you delete "bash" which is also inside the same folder.

i think I fixed it. I copied "bash" then created a link and renamed it to sh. Did that do the trick? Because MTerminal is working again.
  • Solution
Posted

I believe I deleted the symbolic link but also deleted a line of text in sh. I didn't delete bash. i think I fixed it. I copied "bash" then created a link and renamed it to sh. Did that do the trick? Because MTerminal is working again.

Just create a new symlink named sh that points to the bash file. :)

 

Don't rename the bash file otherwise some other stuff may not work.

Posted

Just create a new symlink named sh that points to the bash file. :)

Don't rename the bash file otherwise some other stuff may not work.

thanks for the help! :D

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines