Sample Header Ad - 728x90

Accidentally deleted lib and lib64 from / on RHEL

0 votes
0 answers
1266 views
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.
Asked by dj1122 (1 rep)
Jun 1, 2022, 07:34 AM
Last activity: Jun 1, 2022, 12:14 PM