How to recover deleted files
Sascha Effert
fermat at uni-paderborn.de
Mon Apr 19 08:16:49 UTC 2010
Hello,
I understand you, but if you e.g. use rm in a script you would not want
that it asks. I think nearly everyone using the shell has lost at least
once data by typing rm in the wrong folder... :-)
A friend of mine had set an script therefore, wich replaces rm by moving
anything to a special folder (~/.trash/). You could e.g. use the
following skript:
#!/bin/bash
mv $* ${HOME}/trash
Please store this script under the name rm. I have an own bin directory
in my home directory to do this, where I keep such scripts. To be sure,
that it is used instead of the original rm I have at the end of
my .bashrc the line
export PATH=${HOME}/bin:${PATH}
Perhaps this makes life easier for you.
bests
Sascha
Am Montag, den 19.04.2010, 13:02 +0530 schrieb Vijay Shanker Dubey:
> Hi
>
>
> Did not find any thing back.
>
>
> All my programs, movies, pics are gone. Tried your suggested methods
> But not to get any thing.
>
>
> also tried going back to the windows OS and and use some tools. It
> gave some results but only 3 GB of pictures in my 140 GB partition.
>
>
> Very frustrating. Not a good way to delete any thing. At least confirm
> once. What ever the thing you are deleting.
>
>
> Have been enjoying UBUNTU for last 8 months. Now i have to think over
> again.
>
>
> These usability is what windows provides and rocks with more than 95%
> of OS market.
>
> Regards,
> Vijay Shanker Dubey
>
>
>
> On Mon, Apr 19, 2010 at 2:06 AM, Johnny Rosenberg
> <gurus.knugum at gmail.com> wrote:
> 2010/4/18 Karl Larsen <klarsen1 at gmail.com>:
> > On 04/18/2010 10:03 AM, Hakan Koseoglu wrote:
> >> Karl,
> >> On Sun, Apr 18, 2010 at 4:38 PM, Karl
> Larsen<klarsen1 at gmail.com> wrote:
> >>
> >>> In Linux, when you use rm -r it deletes the whole
> tree including
> >>> all files. When you delete a Linux file it is gone.
> >>>
> >> As usual, not true. It's not easy but not completely
> impossible.
> >>
> >> Sample: http://code.google.com/p/ext3grep/
> >>
> >>
> > Have YOU ever been able to save anything YOU deleted by
> accident?
>
>
> I certainly have.
>
> Johnny Rosenberg
>
>
> > I
> > have tried and nothing I found would work. Why send this
> this guy back
> > on a hunt that will fail?
> >
> > 73 Karl
> >
> >
> > --
> >
> > Karl F. Larsen, AKA K5DI
> > Linux User
> > #450462 http://counter.li.org.
> > Key ID = 3951B48D
> >
> >
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
>
More information about the ubuntu-users
mailing list