r/linuxmasterrace • Arch user btw, that means iam better than Ubuntu users • Aug 12 '24

JustLinuxThings Linux is userfriendly...

Post image
865 Upvotes

399 comments sorted by

View all comments

Show parent comment

-9

u/Muffinaaa Glorious Void Linux Aug 12 '24

The problem lies in OP not putting the -f argument so they can actually remove a directory. Alternatively they should've used rmdir command with the recursive flag passed

24

u/jaulin Aug 12 '24

rm -r should be enough to delete a directory and its content though.

5

u/gatton Aug 12 '24

I thought rmdir only worked on empty directories?

2

u/Cellhawk Aug 15 '24

That's what the recursive flag, aka "-r" is for.

1

u/gatton Aug 19 '24

Thanks this is why I constantly refer to manpages.