I have an Ubuntu Desktop used as a Server.
This morning I accidentally moved all my root to ../
root@server:/tmp/UPS/up/upsilon# mv /* ../
mv: impossibile spostare "/dev" in "../dev": Dispositivo o risorsa occupata
mv: impossibile spostare "/proc" in "../proc": Dispositivo o risorsa occupata
mv: impossibile spostare "/run" in "../run": Dispositivo o risorsa occupata
mv: impossibile spostare "/sys" in "../sys": Dispositivo o risorsa occupata
mv: impossibile spostare "/tmp" in una sottodirectory di sé stessa, "../tmp"
root@server:/tmp/UPS/up/upsilon# ls
-bash: /bin/ls: No such file or directory
I was connected remotely in ssh. Now, I can't access anymore. I can't also view Webmin.
So, now I can't restart system correct? And I must physically access to the system console and type this command:
../bin/mv ../{bin,boot,etc,home,media,mnt,opt,root,sbin,selinux,usr,var,vmlinuz*}
right?
Where did my root directory go and how can I get it back? Will the above command work?