Could someone please guide how to give life back to the RHEL host where I accidentally deleted lib* from /
Now I can't run any command - I need to create links again as below:
lrwxrwxrwx. 1 root root 9 Aug 12 2018 lib64 -> usr/lib64
lrwxrwxrwx. 1 root root 7 Aug 12 2018 lib -> usr/lib
How can I do this - I still have access to system and haven't rebooted as I know it will be gone once rebooted.
[root@srv01 lib64]# ls
-bash: /bin/ls: No such file or directory
[root@srv01 lib64]# mv
-bash: /bin/mv: No such file or directory
[root@srv01 lib64]# pwd
/usr/lib64
[root@srv01 lib64]# cd /usr/lib
[root@srv01 lib]# pwd
/usr/lib
[root@srv01 lib]#
Thanks in advance.
/usr/bin/commandname