Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 11880  / 3 Years ago, thu, september 30, 2021, 2:04:43

I read from a book where it says, the command rm deletes the inode and not the file. Which means if I delete with the rm command, then it cannot be restored.



I'm very new to Ubuntu environment. Now my doubt is, how does the Del key works? It is not deleting the inode as far as I am concerned, because I can restore it from my Trash folder. So am I right to say that Del key is doing a mv command to Trash folder leaving the inode unchanged? Or am I missing something here?


More From » delete

 Answers
4

Your understanding is essentially correct - the Del key as used in Nautilus (or other file manager) is NOT the same as using rm; it "moves" the file to Trash instead so that it can be recovered unless you Empty Trash (which is the same as rm).



Note that even if you rm a file, the actual data is still on the disk after the inode is deleted. If you act immediately before the data is eventually overwritten, you can still recover the data using a tool such as testdisk/photorec.


[#36216] Thursday, September 30, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
enincroscope

Total Points: 252
Total Questions: 124
Total Answers: 104

Location: Tajikistan
Member since Thu, Apr 14, 2022
2 Years ago
enincroscope questions
Thu, Jan 20, 22, 08:33, 2 Years ago
Thu, Apr 7, 22, 01:09, 2 Years ago
Mon, May 16, 22, 09:08, 2 Years ago
;