On Thu, Jun 07, 2001 at 09:46:20AM -0700, Rob Hudson wrote:
>Is there a way to undelete a file? Say, just after you typed 'rm
>filename', and then you suddenly decide that you want to keep that
>file. How can you get it back?
>
>It just happened, so the file is still there, just the inode for that
>file got removed, right?
>
There is a HOWTO on this. It involves fiddling with raw inodes and
other scary stuff. You might be better off restoring from backup
(you *do* take backups, right? Right?)
--
if(rp->p_flag&SSWAP) {
rp->p_flag =& ~SSWAP;
aretu(u.u_ssav);
}