retrieving a deleted file

hi!,
is there any way to retrieve a file that I have deleted few minutes back?? I am using Solaris- 5.6..
:rolleyes:

There is no way of retreiving a deleted file.

When you delete a file the inode becomes free. Usually this inode will be used for the first new file which is created. So retrieving is not an option

As far as I know there is no undelete of retrieve in UNIX.

The only thing you can do is restore it from tape (if you have saved your file(s) on tape.

well certainly there appears to be no way to retrieve exactly the same deleted file. So, all I could do is look for the file in

/var/preserve/username

that is where VI stores the open files when the session is suddenly terminated. And luckily I found a recent version of my deleted file there... :smiley: