this post was submitted on 10 Nov 2023
1705 points (94.1% liked)

linuxmemes

20923 readers
1835 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] nogrub 4 points 11 months ago* (last edited 10 months ago) (2 children)

never execute "sudo rm -r / --no-perserve-root" because you whole sytem will be gone edit i forgot the directory

[–] [email protected] 4 points 11 months ago* (last edited 11 months ago) (1 children)

the -delete option in find goes AFTER the expression.

find -delete [whatever] will delete EVERYTHING in the current directory and below, like rm -rf *

[–] [email protected] 3 points 11 months ago

Huh. I wonder if GNU find should be modified, so that -delete only works when explicitly given a directory.

[–] [email protected] 1 points 11 months ago* (last edited 11 months ago) (1 children)

This shouldnt do anything since you didn't gave it a directory to start with.

[–] nogrub 1 points 10 months ago

oh yeah i forgot a /