Re: deleting directory
On 2002-10-31 22:18-0800 Paul Johnson wrote:
> On Thu, Oct 31, 2002 at 10:09:10PM -0800, ian wrote:
> > can an entire directory be deleted without deleting its contents first? if
> > so how?
>
> rm -r <dirname>
>
> BE CAREFUL! I'm sure a few people can tell horror stories of having
> to rebuild a box either they or some other adminluser did rm -rf / and
> toasted a box...
Not to mention
rm -rf .*
which recurses to _parent_ directory and removes files and directories
there... :-O
Mvh ~ +--------,
Øyvind _~ + ) + ' |/ _ \
,_______________| |______ , , . (~) + +
/________________________/\ . * + ` U *
| http://www.sunbase.org || `.
+------------------------------------------------------------------_ (o_.'
| OpenPGP: 0x629022EB 2002-02-24 Øyvind A. Holm <sunny@sunbase.org> -_ //\
| Fingerprint: DBE9 8D44 67F7 42AC 2CA1 -- 7651 724E 9D53 6290 22EB -_ V_/_
+------------------------------------------------------------------------------
Reply to: