I have an emergency, Linux and Bash beginner here and messed up trying to write a script to rename some files. The loop accidentally went up the path (ran the script in a folder in Desktop) and renamed /bin to /D_bin (D_ was the prefix I added) so now the system can't use /bin contents, so no bash, no mv to rename, no sudo... The files in /D_bin are ok, not renamed, and can copy-paste them but can't create folder /bin again without bash. The system looks stable but very few things work and have no access to files in Desktop.
The other folders of / like /lib /sbin /etc seem to be ok too, and the graphical desktop is still there. I'm afraid of restarting because I don't know if it will be able to boot.
Is there a shell in root or a way to rename /D_bin back to /bin? Need help please, very important work compromised 
My suicidal script :$ :
#!/bin/bash
files=~/Desktop/folder_1/*
for j in $files
do
    cd $j
    for i in 10n*  #file names starting by 10n
    do
       find * -maxdepth 0 ! -path . -exec mv {} D_{} \;
    done
    cd ..
done
:( Thanks!!!!
 
     
     
    