1080
Always try sudo (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] Technus@lemmy.zip 100 points 5 months ago
sudo rm /heart/arteries/**/clot
[-] AmbiguousProps@lemmy.today 90 points 5 months ago

Very important to not hit enter before clot.

[-] Technus@lemmy.zip 37 points 5 months ago
[-] Trail@lemmy.world 1 points 5 months ago

Or btrfs snapshots.

[-] hperrin@lemmy.world 23 points 5 months ago
[-] Technus@lemmy.zip 21 points 5 months ago

I feel like if your body follows the Unix filesystem structure, you have a real problem.

[-] BleatingZombie@lemmy.world 19 points 5 months ago

Please forgive my ignorance. What does ** do?

[-] gaylord_fartmaster@lemmy.world 23 points 5 months ago

Acts as a wildcard for any directories that exist between arteries and clot.

[-] MonkderDritte@feddit.de 3 points 5 months ago* (last edited 5 months ago)

But only in Bash and if settings match. It's only reliable on your own shell, don't use it in scripts.

[-] Technus@lemmy.zip 8 points 5 months ago* (last edited 5 months ago)

It's a glob pattern (edit: tried to find a source that actually showed ** in use).

[-] mosiacmango@lemm.ee 6 points 5 months ago* (last edited 5 months ago)

Had to look this up as well. Its not rm specific:

* is a simple, non-recursive wildcard representing zero or more characters which you can use for paths and file names. ** is a recursive wildcard that can only be used with paths, not file names.

More here.

this post was submitted on 10 Jul 2024
1080 points (93.8% liked)

Programmer Humor

19821 readers
535 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS