I executed command rm -rf *
when i was in lib64
or a directory inside it.
(Through comments/answers problem is that i deleted ld-linux-x86-64.so.2
and i don't have a temporary one inside /var/lib64
)
(I have busybox )
Then I can't execute most of bash commands like ls
,bash
. When i try to execute them i see:
bash: /usr/bin/bash: No such file or directory
or
bash: /usr/bin/ls: No such file or directory
But a number of commands work properly like echo
, cd
And a number of commands work but not properly like which
that show the below error:
bash: /usr/bin/which: /bin/sh: bad interpreter: No such file or directory
When I go to /usr/bin
through cd
and then execute command cd $file
it throw an error. for example, when i execute cd /usr/bin/ls
it show me:
bash: cd: /usr/bin/ls: Not a directory
or
bash: cd: /usr/bin/bash: Not a directory
when i executed 'cd /usr/bin/bash'
and when i open the terminal i show the below message:
There was an error creating the child process for this terminal
Failed to execute child process “/bin/bash” (No such file or directory)
(With two option: Preferences, Relaunch)
My $PATH
is /home/$me/.sdkman/candidates/springboot/current/bin:/home/$me/.cargo/bin:/home/$me/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/grade/gradle-7.0.2/bin:/opt/apache-maven-3.8.1/bin:/home/$me/v8/depot_tools:/home/$me/.config/composer/vendor/bin
I can use browser, or/and programs previously launched. But i can't launch them again.
I have one open terminal tab with a number of commands previously mentioned and a browser and a document reader. They work but they can't be launched again.
What is can't understand is the below error:
bash: /usr/bin/which: /bin/sh: bad interpreter: No such file or directory