Sample Header Ad - 728x90

/bin/bash accidentally moved to another location

0 votes
0 answers
66 views
I have an Azure VM and while I was moving some files from my present working directory with the command mv, I accidentally missed the . in front of my source and instead wrote
mv /* /destination/path
This moved some files from / (including /bin directory) to the destination. I am locked out of my VM now as I cannot SSH into a Bash terminal there because the terminal doesn't exist in /bin/bash (an absolute blunder from my side). I am here to understand if there's any way to regain access to this VM. I do not have any other shell installed.
Asked by Amit Sharma (101 rep)
Mar 8, 2024, 08:24 PM
Last activity: Mar 12, 2024, 10:23 AM