rm -d...why won´t this remove a directory?
Caleb Marcus
caleb.marcus at gmail.com
Thu Nov 15 22:11:49 UTC 2007
Use rm -r for that ( rm -r /path/to/dir )
On Thu, 2007-11-15 at 13:10 -0500, 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
>
> --
>
> 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------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071115/740f3463/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071115/740f3463/attachment.sig>
More information about the ubuntu-users
mailing list