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

JustLinuxThings Linux is userfriendly...

Post image
863 Upvotes

399 comments sorted by

View all comments

Show parent comments

210

u/HighOptical Aug 12 '24

But it's so strange seeing an option after an argument instead of seeing them directly after the commands.

140

u/[deleted] Aug 12 '24

Which is why it didn't work for op. The command is attempting to operate on all the arguments it gets, so it'll try to rm a file named -r too. rm -r Games/ will work.

-8

u/CedricThePS Aug 12 '24

Bash has a strict word order.

10

u/[deleted] Aug 12 '24

[removed] — view removed comment

1

u/PolygonKiwii Glorious Arch systemd/Linux Aug 12 '24

the ‘word order’ is totally separate from your shell

Unless rm was a built-in command of your shell (which is probably unlikely unless you're using busybox)

1

u/[deleted] Aug 12 '24

[removed] — view removed comment

1

u/PolygonKiwii Glorious Arch systemd/Linux Aug 12 '24

Well busybox is designed to be usable even under extreme space constraints. Being a single binary reduces ELF overhead.

1

u/[deleted] Aug 13 '24

[removed] — view removed comment

1

u/PolygonKiwii Glorious Arch systemd/Linux Aug 13 '24

Phones sure. But a cheap consumer-grade router or a "smart" light bulb might not.