Sudo rm -rf .

you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 7 months ago (3 children)

At least bash doesn't seem to match it...

gregor@raspberrypi:~ $ ls
bridge  navidrome  seed  traefik
gregor@raspberrypi:~ $ ls *.*
ls: cannot access '*.*': No such file or directory
gregor@raspberrypi:~ $ cat *.*
cat: '*.*': No such file or directory
  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 7 months ago* (2 children)

    Right, so then if asterisk wildcards don’t match on . and .. then, in most common distros where there is no dot in any of the top level dirs in /, “rm -rf *.*” in the top level / dir is basically harmless and likely a noop.

    So OP is wrong.

  • source
  • parent
  • hideshow 2 child comments