0

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.

7
  • So you learnt why backups are not a total waste of time. OK ! That won't help you now. Do you get access to any other system (same arch same processor family same version of libs) running elsewhere ?
    – MC68020
    Jun 1, 2022 at 8:35
  • Yes I do have same system available but can't ssh remotely as it doesn't find /bin/bash
    – dj1122
    Jun 1, 2022 at 8:52
  • Could you transfer files using (s)ftp ?
    – MC68020
    Jun 1, 2022 at 8:55
  • that host giving me connection closed when trying with sftp
    – dj1122
    Jun 1, 2022 at 8:59
  • /usr/bin/commandname Jun 1, 2022 at 12:16

0

You must log in to answer this question.

Browse other questions tagged .