Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

osama_abdullah's avatar

i run "rm -rf /*" by mistake now i can not execute any commands on server

I accidentally run

rm -rf /*

by mistake now I can not run any commands on the system

it gives

-bash: /usr/bin/ls: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory

how can I fix that

0 likes
1 reply
Snapey's avatar
Snapey
Best Answer
Level 122

rebuild the server from scratch and restore backups.

1 like

Please or to participate in this conversation.