Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2002 21:31:18 -0700
From:      Nathan Kinkade <nkinkade@dsl-only.com>
To:        "Defryn, Guy" <G.P.Defryn@massey.ac.nz>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How do I delete directories and subdirectories at once
Message-ID:  <20020502213118.04582b12.nkinkade@dsl-only.com>
In-Reply-To: <98B01D2717B9D411B38F0008C7840931057F3803@its-xchg2.massey.ac.nz>
References:  <98B01D2717B9D411B38F0008C7840931057F3803@its-xchg2.massey.ac.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 3 May 2002 16:18:42 +1200 
"Defryn, Guy" <G.P.Defryn@massey.ac.nz> wrote:

> 
> 
> This is probably a silly question but I cannot figure out how to
> delete directories, subdirectories and all files in one go.
> 
> Thanks

rm -rf <thedir>

it's a recursive removal of files....so if you:
$ rm -rf /usr/local/www
everything below the www dir, and the www dir itself, will be deleted.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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