From owner-freebsd-questions Fri Aug 9 06:38:30 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA12041 for questions-outgoing; Fri, 9 Aug 1996 06:38:30 -0700 (PDT) Received: from mail.EUnet.hu (mail.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA12025 for ; Fri, 9 Aug 1996 06:38:26 -0700 (PDT) Received: by mail.EUnet.hu, id PAA20026; Fri, 9 Aug 1996 15:38:21 +0200 Received: by CoDe.CoDe.hu (PAA02401); Fri, 9 Aug 1996 15:31:19 GMT From: Gabor Zahemszky Message-Id: <199608091531.PAA02401@CoDe.CoDe.hu> Subject: Re: is there an undelete? To: freebsd-questions@freebsd.org Date: Fri, 9 Aug 1996 15:31:18 +0000 (GMT) Cc: durang@u.washington.edu In-Reply-To: from "Ken Marsh" at Aug 8, 96 05:06:35 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Is there an undelete type utility for FreeBSD which will recover files > deleted with the rm command? Well: 1) You cannot undelete files under Unices. 2) You cannot undelete files under Unices. 3) You cannot undelete files under Unices. 2) You can make a very little script, eg: $ cat /bin/myrm #!/usr/local/bin/ksh mkdir $HOME/.trashcan 2>/dev/null for i do j=${i%%[!/]*} j=${j##$HOME} mkdir -p $HOME/.trashcan/$j 2>/dev/null mv ${i##$HOME} $HOME/.trashcan/$j done or something like this (Hey! I just write it, and didn't make any test in it, so BEWARE!) 3) If I remember well, somewhere in past, there were something named Project Athena, and if I'm right, there were something named undelete in it. Search for it somewhere in the net. Maybe archie? Bye, Gabor -- Gabor Zahemszky -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky