rm -d...why won´t this remove a directory?
anthony baldwin
anthony.baldwin01 at comcast.net
Thu Nov 15 18:34:02 UTC 2007
Bruce Ferrell wrote:
> you have to do rm -Rf
>
> anthony baldwin wrote:
>> Shouldn´t "sudo rm -d [directory name] remove a directory?
>> rmdir will only remove empty dirs, and I am trying to remove a dir
>> and it´s contents.
>> I do
>> sudo rm --directory -f music
>> and get
>> rm: cannot remove `music': Is a directory
>>
>> thanks
>> tony
>>
>
Thanks, Bruce...
Actually, moments after sending this last msg, I re-read the man
page and figured out that I wanted rm -r.
That worked.
thanks
tony
--
http://www.baldwinglinguas.com
translations: EN, FR, ES, PT
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GL d- s-:-- a C+++ UL++ P L+++ E---- W++ N+ o- K- w--
O- M+ V- PS++ PE-- Y+ PGP+ t+ 5 X+ R tv b++++ DI D----
G e+++ h---- r+++ y++++
------END GEEK CODE BLOCK------
More information about the ubuntu-users
mailing list