Why /var/bin/su errors with /lib64/ bad ELF interpreter: No such file or directory

By mistake i moved ( …a directory of root …to another directory With in… root)

mv lib64 /Python/environments/my_env/bin

After this when i typed commands like …>>>>ls, >>>vim it’s not working. i am getting
bash: /usr/bin/ls: /lib64/ bad ELF interpreter: No such file or directory.

Please fix this.

I am using linux cent so 7 (recently installed cent0s 7)


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It sounds like the problem is not limited to /root since the commands you’re attempting to use and their associated libs live outside /root. I would recommend opening a ticket with our support team. They can set your droplet to boot to a recovery environment which offers a bash shell of it’s own that will let you mount your disk, investigate and attempt to fix the issue or copy out needed files so you can rebuild the droplet.