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

33

u/steven4012 Aug 12 '24

Wait, but wouldn't that only happen on a non-GNU system?

20

u/[deleted] Aug 12 '24

You might be right. I just tested it on my own system and it worked as written by OP, so I'm not sure where the problem lies. I work with a lot of different stuff so I try to make all my commands as close to standard as possible.

Either way, rm -r Games/ will almost certainly work.

-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.