I used ubuntu and ssh by shh-remote extension to another ubuntu server, and I accidentally deleted a folder containing important files by pressing the delete key. I pressed "ctrl+z" but it did not restore.
What did vsc actually do?
How did I recover the deleted files (either by Visual Studio Code or by another way)?
I use testdisk to recover but it show "ok" quite low, and "failed" quite high?
You cannot recover files you have deleted with SSH through the VSCode editor built-in properties like Ctrl-Z. Operations on the disk are the responsibility of the operating system.
If you have not GUI acces to OS maybe you can look at the
or if your files deleted with root privileges
If your files are not deleted permanently you can restore with Trash-CLI program:
sudo apt install trash-cli
then put this command to terminal
If your files deleted permanently check this link for file recovery:
Answered By – Dogukan Aydin