rm -d...why won´t this remove a directory?

Bruce Ferrell bferrell at baywinds.org
Thu Nov 15 18:13:10 UTC 2007


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
> 




More information about the ubuntu-users mailing list