Is there a way to recover removed files in a situation such as described below? The command I executed was:
root@system:/# rm -r /tmp/letsencrypt.sh-XXXXXX l*
I tried to remove all the files in that directory that started with an l. When I noticed what I did it was too late, I know, pretty stupid...
I quickly made a snapshot after. Does anyone know some way to save my system? Or how I can search for files in it? It seems ls is also gone:
root@system:/# ls /tmp
bash: /bin/ls: No such file or directory
root@au-dev:/# echo *
bin boot dev etc home initrd.img media mnt opt proc root run sbin snap srv sys tmp usr var vmlinuz
cd /; echo *. I don't see why that command would have removedls. It would have removed all your/libdirectories, effectively breaking your system, but all of your data and files should be fine. – terdon Jun 20 '16 at 18:25ls, and thel*directories. – Jun 20 '16 at 19:51lsfrom /bin but it does make the command not work. – Jun 20 '16 at 19:54/l*is untouched. – Jun 20 '16 at 20:04