Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2004 20:29:35 -0700
From:      Hemal Pandya <hemalpandya@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: two questions
Message-ID:  <50be591b04062420296611a8d5@mail.gmail.com>
In-Reply-To: <1793.192.168.1.1.1088132789.squirrel@192.168.1.1>
References:  <1793.192.168.1.1.1088132789.squirrel@192.168.1.1>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 Jun 2004 23:06:29 -0400 (EDT), Michael Sharp <ms.probsd@org> 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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50be591b04062420296611a8d5>