Ubuntu – How to restore deleted from Ubuntu trash items
trashUbuntu
How to restore deleted items from the Ubuntu trash?
Best Answer
If you delete a file from the trash (or delete it without even sending it to the trash, like with shift+del or rm), it can't be recovered. Technically, the data may be there somewhere on the disc, which you may get back with reading the disc contents directly (which is a Not Easy task, but theoretically possible if you deleted some very important data; but very important data should always be backed up), but it is quite possible that it is already overwritten. So I can say that practically your data is lost. It is because the structure of Linux file systems.
Note that on the other hand, it is possible to recover deleted files from Windows partitions (like FAT32 or NTFS), and there are several tools for that. But the data still gets overwritten pretty quick there, so it is practically impossible to recover a deleted file from a Windows system partition.
That's exactly why the concept of a trash is invented, to prevent users accidentally losing their data. If you tell the computer to delete something from the trash, then you must be pretty sure you want to delete it.
Open a terminal window and type in "rm " (without the quotes, but with a space at the end).
Open the trash and drag the file you want to delete onto the terminal window. The file path will appear.
Press return in the terminal window to delete the file.
You can remove multiple items
by highlighting the trash item and scroll down as many items as you want removed, hold shift key and highlight last item and all items in between will be highlighted. Drag over to terminal, as above, and all will be deleted.
Best Answer
If you delete a file from the trash (or delete it without even sending it to the trash, like with shift+del or rm), it can't be recovered. Technically, the data may be there somewhere on the disc, which you may get back with reading the disc contents directly (which is a Not Easy task, but theoretically possible if you deleted some very important data; but very important data should always be backed up), but it is quite possible that it is already overwritten. So I can say that practically your data is lost. It is because the structure of Linux file systems.
Note that on the other hand, it is possible to recover deleted files from Windows partitions (like FAT32 or NTFS), and there are several tools for that. But the data still gets overwritten pretty quick there, so it is practically impossible to recover a deleted file from a Windows system partition.
That's exactly why the concept of a trash is invented, to prevent users accidentally losing their data. If you tell the computer to delete something from the trash, then you must be pretty sure you want to delete it.