Skip to content
Guest Big Announcement

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

Featured Replies

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

Solved by Rook

  • Author

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.

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

  • Author

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

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.

  • Author

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.