Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to recover a removed file under linux

I was trying to delete some file but accidently wrote command rm * which deleted my scripts from working directory.

Is it possible to recover removed file in unix . In windows we can resotre from trashcan ..I hope we can do similar stuff in unix.

Please advise.

share|improve this question

migrated from Feb 1 '13 at 18:41

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Michael Hampton, TFM, slhck Feb 1 '13 at 21:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Off topic, but good luck! – Carl Norum Feb 1 '13 at 18:33
can u advise where can I post this – Alien01 Feb 1 '13 at 18:40

No, there is no "Trashcan" equivalent for the RM command. Recovery at this point is hard, but may not be impossible.

In order to work out what techniques may be available for recovery we need to find out what format the drive is. Can you provide the path to the deleted files and a copy of /etc/fstab before you shut down the system ? This should hopefully confirm that it is an ext4 system (but it could be anything - ext2,ext3,ext4,reiser,vfat for a start).

IMPORTANT - DO NOT CONTINUE TO USE THAT DRIVE. The more you continue to use the drive the harder it will be to get any data off it. Ideally you want to unmount the drive (and if its a boot drive boot from a rescue disk)

Once we know the format of the partition we can look to see if there are any undelete tools available for it. (If not, we can always try photorec, but that is a slow solution and will recover a lot of stuff you don't want, while not providing any pointers to what you do want !!!)

share|improve this answer

Your tag is UNIX but I suspect it may be a Linux system.

If it is Linux, consider extundelete from sourceforge. However David Go is very much correct - stop using the system.

I have no clear idea how to get extundelete onto your system other than to put a compiled version onto usb stick and run from there.
share|improve this answer

Not the answer you're looking for? Browse other questions tagged .