bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: slight 'rm --help' confusion


From: Philip Rowlands
Subject: Re: slight 'rm --help' confusion
Date: Thu, 7 Apr 2005 20:45:58 +0100 (BST)

On Thu, 7 Apr 2005, G. Vamsee Krishna wrote:

>Would be nice though if it says that `rm' does the same thing to
>directories too. I still remember using `rmdir' on an empty directory
>about 2 years ago when I started using GNU/Linux.

rmdir can still be useful as a less-dangerous alternative to rm -r;
rmdir * will only wipe empty directories, although I was overjoyed when
I found this worked:

$ find dirname -depth -type d -empty -exec rmdir -v -- '{}' ';'


Cheers,
Phil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]