When I delete folders or files in the Nautilus GUI, those folders/files go to Trash but where do folders/files go when I run rm -rf folder_or_file_name in terminal in Ubuntu 10.04?
|
|
|
As far as I know a 'rm' command completely removes files and directories. There are "undelete" options, but there is no such thing as a "Trash" or "Recycle Bin" |
|||
|
|
|
From the man page:
I believe that If you're hoping that the files go to some other kind of trash / recycle bin though, I'm afraid you're out of luck. |
||||
|
|
|
John is correct. When you do an rm, it removes the directory entry which points to the file. The file's contents are still on disk, but have no associated entry. The contents will remain on disk until the blocks containing those contents are reused. This could be almost immediately, or could be never, depending on the type of disk, the disk firmware, and the number of writes to the disk. If you have inadvertently deleted a file and want to recover it, first find out what your filesystem type is. You can do this by typing 'mount' and then looking at the 'type' field. I don't know what Ubuntu uses by default, but it will probably be something like ext4 or (if you're lucky) ext3. Then do a Google search for "undelete " If you discovered that your filesystem is ext4, you will search for "undelete ext4". Choose whichever tool looks the least sketchy and then try using it. |
|||
|
|
|
It's quite similar to the shift-Delete except that they still exist temporarily on disk but not referenced so you physically can't find them. They will eventually be replaced but something else. I agree with John and this last Guy. |
|||
|
|
