2

I deleted /bin folder from computer in Ubuntu with rm command.
How can recover it ?

  • If this answer is right for you, please mark answer as "accepted". – L.F.C. May 5 '18 at 11:43
2

Reinstall your system from a live session. Mount the partitions without formatting them;that will preserve your setting and files.

Mind though that it is wise to create a backup of your personal files from the live session before doing this.

And stop using "rm" in combination with "sudo" or a root session and evaluate why you feel the need. There should not be a reason to remove any file in the base of the system. If you installed software in the base system don't do that (use /opt/) or use the correct tool to remove them (like apt purge or apt remove).

  • Thanks for your reply. please explain, how can reinstall from live session – Neda Mohammadi May 5 '18 at 11:04
  • Same way you installed Ubuntu originally? Boot from the live session USB stick, follow the install procedure. Only thing you need to do is MOUNT the partition as you use them now and NOT format them. – Rinzwind May 5 '18 at 11:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.