Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I have removed a file from commmand prompt using rm -rf command, is it possible to recover the file again? is ant command available to do it? thanks in ...
  1. #1
    Just Joined!
    Join Date
    Dec 2005
    Posts
    3

    Question recover file

    Hi,
    I have removed a file from commmand prompt using rm -rf command,
    is it possible to recover the file again?

    is ant command available to do it?

    thanks in advance,
    sri.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    i dont think its possible to recover file after deleting through 'rm'. i will be glad fi someone prove me wrong.






    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    I've always considered it a rite of passage to remove a file unintentionally.

    There are more than 1M hits resulting from Google search for "recover linux file after remove".

    As time goes on, the likelihood of recovery becomes less and less because you placed the storage for the file in the available pool, new files are being created, and they will consume space that is available on the disk. In most cases for me, it has seemed to be more trouble to stop production, find an appropriate tool, and spend the time searching for the data, compared to reconstructing the file.

    Without trying to preach, this is one reason why backups are important. Even for small files like scripts, I often use a small version control mechanism for temporary backup so that I quickly can get to a previous version. I backup files nightly to disk, and every now and then I place important files on DVD. Time is the precious commodity for me, not disk space, computer time, or media costs.

    If you are unlucky and these kinds of things happen to you frequently, you might consider making your own version of rm that will place items in a trash directory, which in turn gets emptied daily, weekly, etc.

    Sorry to hear of your misfortune, but it's a good lesson on many levels ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

  4. #4
    Linux Newbie
    Join Date
    Aug 2006
    Posts
    226
    I'd give TestDisk or Foremost a try.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...