From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 03:29:38 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 4D39D16A4CE for ; Fri, 25 Jun 2004 03:29:38 +0000 (GMT) Received: from mproxy.gmail.com (mproxy.gmail.com [216.239.56.251]) by mx1.FreeBSD.org (Postfix) with SMTP id 2E6FA43D1D for ; Fri, 25 Jun 2004 03:29:38 +0000 (GMT) (envelope-from hemalpandya@gmail.com) Received: by mproxy.gmail.com with SMTP id q44so5788276cwc for ; Thu, 24 Jun 2004 20:29:35 -0700 (PDT) Received: by 10.38.79.55 with SMTP id c55mr47501rnb; Thu, 24 Jun 2004 20:29:35 -0700 (PDT) Message-ID: <50be591b04062420296611a8d5@mail.gmail.com> Date: Thu, 24 Jun 2004 20:29:35 -0700 From: Hemal Pandya To: freebsd-questions@freebsd.org In-Reply-To: <1793.192.168.1.1.1088132789.squirrel@192.168.1.1> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1793.192.168.1.1.1088132789.squirrel@192.168.1.1> 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 03:29:38 -0000 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 > > 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 >