Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 839  / 1 Year ago, sun, january 22, 2023, 11:18:29

I did sudo -i and rm -r folder ...I typed the wrong folder and deleted a folder I didnt want to delete. Bad practice I know :( Where did the folder end up? Any chance of retrieve?
I am not sure where is the trash folder that the folder ended up in. I checked this site and some say that trash root is located at /root/.local/share/Trash but this folder does not exists on my Ubuntu 18.04


More From » root

 Answers
2

The only way to reverse an rm command is to debug file system, method depends on the file system itself but also of your exact knowledge of what exactly has been removed.


There is no exception to that but using external/installed dedicated tools before you need it.


In your case, you can only get it back from the file system method or from a previous backup.


you can read this topic : https://unix.stackexchange.com/questions/80270/unix-linux-undelete-recover-deleted-files


[#708] Monday, January 23, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
naldis

Total Points: 257
Total Questions: 101
Total Answers: 111

Location: Kenya
Member since Sat, Feb 25, 2023
1 Year ago
;