Recovering Deleted Files with lsof

Today I accidentally deleted a PDF file, fortunately the PDF reader was still open and had a reference to the file so I could copy it back from:

/proc/<pid-of-pdf-reader>/fd/<num-as-shown-by-lsof>

There is an article on linux.com which explains the procedure if your unfamiliar with it.

Marc