How to get deleted files in Linux

sharmila's Avatar, Join Date: Mar 2006
Contributor
Hi all,
In Linux,if we delete a file using 'rm' is there any way to get it back without using any 3rd party tools?

Thanks in advance,
sharmila.
sharmila's Avatar, Join Date: Mar 2006
Contributor
I got the answer..
I used function..
create a dir Trash and move all the deleted files into it.
del()
{
mv $1 ~/Trash/
}

Regards,
sharmila.
velumurugesan's Avatar
Newbie Member
please explain me
i need to get back my all deleted files
sharmila's Avatar, Join Date: Mar 2006
Contributor
Hi velumurugesan,
I don't know how to get already deleted files.

Regards,
sharmila.
velumurugesan's Avatar
Newbie Member
ok sharmila,
thanks for your reply
are you interested in this Topic(Linux administration) further
Svaths's Avatar, Join Date: Mar 2007
Newbie Member
Hi,

If you have atleast 1 other process using an already deleted file, You can retrieve it using the /proc filesystem and lsof

Plz go through this detailed exp:
http://www.linux.com/print.pl?sid=06/10/30/1652211



Thanks & Regards,
Svaths
fsakalos's Avatar, Join Date: May 2007
Go4Expert Member
If you once delete it, you have no chance to get it back. You would need to make backups of that files.
jhonstack's Avatar, Join Date: May 2008
Newbie Member
Quote:
Originally Posted by sharmila
Hi all,
In Linux,if we delete a file using 'rm' is there any way to get it back without using any 3rd party tools?

Thanks in advance,
sharmila.
Hi sharmila

Yes you can recover it. There is a method to recover it.May be this method works for you can check it out this link
http://linux-recovery.blogspot.com/
sharmila's Avatar, Join Date: Mar 2006
Contributor
Hi Johnstack,
Thanks for the responce. I didn't tried but it is very much informative..

Regards,
sharmila
sharmila's Avatar, Join Date: Mar 2006
Contributor
Quote:
Originally Posted by Svaths
Hi,

If you have atleast 1 other process using an already deleted file, You can retrieve it using the /proc filesystem and lsof

Plz go through this detailed exp:
http://www.linux.com/print.pl?sid=06/10/30/1652211



Thanks & Regards,
Svaths
Hi Svaths,
The link which was mentioned here is not opening.. Will try to get the info using google.. Thanks for the reply.

Regards,
Sharmila