/lib has been moved accidentally

How to run all the commands in /bin and /usr/bin if the /lib has been moved accidentally

Scenario:

The /lib has been moved to /lib.old

If this has been done, all the commands like mv, ls and all that are in /bin and /usr/bin will not work since the /lib is needed

To resolve this and move back the /lib.old to /lib perform the following.

export LD_LIBRARY_PATH=/lib.old:/lib.old/x86_64-linux-gnu

/lib.old/x86_64-linux-gnu/ld-linux-x86-64.so.2  /bin/mv /lib.old /lib


Revision #3
Created 29 September 2025 00:13:03 by Admin
Updated 11 November 2025 10:59:58 by Admin