From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 05:53:39 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 641FD16A4CE for ; Fri, 25 Jun 2004 05:53:39 +0000 (GMT) Received: from outbox.allstream.net (outbox.allstream.net [207.245.244.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 313FE43D4C for ; Fri, 25 Jun 2004 05:53:39 +0000 (GMT) (envelope-from epilogue@allstream.net) Received: from localhost (mon-pq54-131.dial.allstream.net [216.123.140.131]) by outbox.allstream.net (Allstream MTA) with SMTP id 9AD05B47BA; Fri, 25 Jun 2004 01:22:15 -0400 (EDT) Date: Fri, 25 Jun 2004 01:22:05 -0400 From: epilogue@allstream.net To: Hemal Pandya Message-Id: <20040625012205.75fac6ab@localhost> In-Reply-To: <50be591b04062421371516e6dc@mail.gmail.com> References: <1793.192.168.1.1.1088132789.squirrel@192.168.1.1> <20040624235109.75b3399b@localhost> <50be591b04062421371516e6dc@mail.gmail.com> X-Mailer: Sylpheed version 0.9.11claws (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: two questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2004 05:53:39 -0000 On Thu, 24 Jun 2004 21:37:32 -0700 Hemal Pandya wrote: > On Thu, 24 Jun 2004 23:51:09 -0400, epilogue > wrote: > > > > On Thu, 24 Jun 2004 20:29:35 -0700 > > Hemal Pandya wrote: > > > > > On Thu, 24 Jun 2004 23:06:29 -0400 (EDT), Michael Sharp > > > wrote: > > > > > > > > I'm having a brain freeze tonight and apparently forgot some > > > > basic UNIX commands.. > > > > > > > > what is the command to remove the file "--directory" > > > > > > > > rm *directory* = nope > > > > rm "*directory*" = nope > > > > rm \-\-\directory = nope > > > > rm -i * = nope and dosent even see the file > > > rm ./-directory > > > > funny, though i tried these on a test directory... > > > > rm ./-test > > rm -- --test > > > > ...neither worked for me. > Thats very surprising. The fist option above has worked for ever and > the second at least for a decade or so. Can you post some output? > as requested... (standard shell and standard user) ~> mkdir test ~> rm ./-test rm: ./-test: No such file or directory ~> rm -- --test rm: --test: No such file or directory ~> rm -r test remove test? y ~> mkdir test ~> rm -rf test ~> > > admittedly, both suggestions are new to me > > and i'm likely 'misreading' the statements. > I should think so. > > > anyhoo, i've always had > > success deleting directories with: > > > > rm -r > > rm -rf # if i'm lazy and want to save myself a 'y' and an 'enter', or > > simply don't feel like being second guessed. :) > Neither of this would work by itself, because the file argument to rm > is not optional. What argument would you pass? > the directory in question. thought that was obvious. thought wrong. heh. > > > > epi > > > > > > > > > > > > > Also, if I'm in / and want to tar the entire filesystem > > > > EXCLUDING the > > > > directory jail ( /jail ) what would be the switches to tar? > > > > > > > Lookup --exclude in man tar. You want : > > > $ tar cvf file.tar --exclude jail . > > > > > > > > Dana > > > > > > > _______________________________________________ > > > freebsd-questions@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > > To unsubscribe, send any mail to > > > "freebsd-questions-unsubscribe@freebsd.org" > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >