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/lib
directories, effectively breaking your system, but all of your data and files should be fine.ls
, and thel*
directories.