November 17, 20223 yr So, I was trying to clear a directory and accidentally typed rm -R /* instead of what I meant to type. Looks like my VMs are running and the web server is still running albeit giving a 500 error. Any way to resolve this remotely or am I going to have to rebuild the USB drive? If so, whats the best way to do either of these. I promise to remember not to run console commands when tired.
November 17, 20223 yr Community Expert Did you reboot the server yet? Did you kill the process before it finished? Get a screen capture of the output of these two commands: ls -al / and ls -al /boot Post them up in your next post. Also check to see if there are any files missing from the array. What you should be concerned about is "Did it get to the /boot and/or /mnt directories?" As far as I can recall, everything else is recreated when the server is rebooted. PS--- You can avoid this problem if you ALWAYS run an ls -al command using the path that you intend on using for the rm command. Then paste the path from the ls command into the rm command. The rm command is probably the most dangerous Linux/Unix command that you can run--- particularly as root.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.