Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I downloaded some documents via FireFox but I accidentally deleted them and emptied the trash bin. Is there a way I can recover these files? There were about 40 different files.
In UNIX or Linux, once it is deleted, it is gone. KDE and GNOME have "trash bins," which act as a storage area for "deleted" files until you confirm that you really want to delete them. Once they are deleted from there (or when any file is deleted using the command line), that is the end.
Oh no...Aw man! Maybe FireFox has like some backup file where stuff that is downloaded is made copies of? Or maybe these files have backups in some hidden system file of Debian?
Oh no...Aw man! Maybe FireFox has like some backup file where stuff that is downloaded is made copies of? Or maybe these files have backups in some hidden system file of Debian?
Unfortunately, as stated above, deleting a file in Linux is not the same as in Windows. When the file is deleted, it really is gone... I'm not sure if the cache in Firefox would help or not. I think that is just for storing temp files and information from web pages that you have visited... Not for actual downloaded files...
In the GUI, the behavior is similar to Windows---you have the trash can (which you said you emptied).
At the command line, there is no trash can, etc. But, with a command like rm, it will still prompt you--unless you use the -f flag.
If you do not write to the disk, files a re still potentially recoverabe with low-level utilities. In this case, however, just downoading again is surely be best approach.
You can pull up the download manager(TOOLS-->DOWNLOADS) in firefox and see if they are still there. There will be a link to redo or something similar next to the entry in the download manager.
If you clean your history each time firefox closes, your outta luck AFAIK.
I remember there was a unix command, but I cannot recall what it was. I don't think it's as reliable and simple as "undelete" in MS-DOS
Theres a program called foremost, its pretty reliable at finding files of a certain type by looking for their headers. Things like jpg,avi,doc etc. It might be worth a look.
Someone suggested Foremost to me before. I don't know how to use it though. Is there any guide I can follow to recover these files? The extensions on all of them are "Plain Text Documents" (I use Kwrite).
Well, there is a man page on the Foremost site......
If you hope to recover anything, be sure not to write to that disk. If the data is really critical, also consider cloning the drive (or partition) before proceeding)
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Rep:
If I were you, I hope you are accessing and posting on another computer. I wouldn't want to be working on the computer that I am trying to recover files from. Might accidentally make it harder to recover. Oh yes, and don't shut off the affected computer, either! GOod luck and let us know if you retrieve the file or not.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.