Environmental Information: centos 7.6 aarch64
Because of the need to run arm32 bit programs aarch64 bit environment, so my hand to the / lib directory adds many arm32 bit dependent libraries.
After the execution, the need to restore the environment, I extracted a set of keywords, want mv /lib/ld-*.so.* / tmp command me to add arm32 bit dependent libraries have been moved to the / tmp directory, in order to restore surroundings.
As a result, a strange thing happened when I was executing the mv /lib/ld-*.so.* / tmp, execute when you want to see if there arm32 bit of residual file dependencies, the following error occurs ll command system:
/lib/ld-linux-aarch64.so: not such file
(⊙o⊙) ..., I mistakenly deleted aarch64 bit dependencies of the bar. Recover quickly using the mv command, mv command execution result is the same error.
After that, I tried cp, ln, scp are the same error.
google search a bit to find the following passage:
if you only moved /lib,you can easily recover:
code:
/NEWLIBPATH/ld-linux.so.3 /bin/mv/NEWLIBPATH /lib
that ld-linux is magic.
The original, / lib / ld-linux.so can be run as a command! Further ld-linux.so of principle and function, we welcome the comments section interact, discuss learning :)
Reference Links: https://www.linuxquestions.org/questions/linux-software-2/i-moved-lib-help-309345/