From owner-freebsd-questions Mon Jul 8 09:44:43 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA17075 for questions-outgoing; Mon, 8 Jul 1996 09:44:43 -0700 (PDT) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id JAA17069 for ; Mon, 8 Jul 1996 09:44:40 -0700 (PDT) Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0udJPR-000Qg8C; Mon, 8 Jul 96 18:43 MET DST Date: Mon, 8 Jul 1996 18:37:37 +0200 From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (root@localhost) by allegro.lemis.de (8.6.9/8.6.9) id SAA10405 for questions@freebsd.org; Mon, 8 Jul 1996 18:37:37 +0200 Message-Id: <199607081637.SAA10405@allegro.lemis.de> To: questions@freebsd.org Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Helio Coelho Jr. - CompuLand Informatica writes: > >> Helio Coelho Jr. - CompuLand Informatica writes: >>> >>> Hi: >>> >>> There's a way to delete a directory tree, >> >> Yes. rm -rf tree >> > > Sorry!: > > without having to delete all the archives inside it ? > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ You don't understand. In UNIX (and in DOS, for that matter), a directory is a way to find files (which may be archives). If you delete the directory tree, you no longer have access to the files (or archives). If you were to delete the tree without deleting the archives, you would not be able to access the files, but you would also not be able to use the disk space. For this reason, all operating system developers (and the people at Microsoft) consider this a Bad Thing. In fact, there are ways to do exactly this with UNIX, but I don't want to further confuse you with them at this stage, because I think I'm completely misunderstanding what you want to do. So, at the risk of repeating myself: >> Possibly. But first I need to understand what you really want to do. >> Can you give an example, please? A couple of possibilities spring to mind: 1. You want to delete only empty directories. 2. You want to delete subdirectories, but not the files in the main directory. Whichever it is, you haven't made your request clear. Do you make a distinction between archives and files? Greg