• 0 Posts
  • 45 Comments
Joined 2 years ago
cake
Cake day: June 14th, 2023

help-circle







  • setsubyou@lemmy.worldtolinuxmemes@lemmy.worldAlias's rule
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    1 month ago

    On Linux, rm can delete empty directories with -d too, not just with -r.

    rmdir is the counterpart to mkdir, which creates empty directories, so of course it can only remove empty directories. After all mkdir can’t create full directories either. There however is rmdir -p as a counterpart to mkdir -p, so if there is something in the directory, you can use that, as long as the something is an empty directory.












  • I think in the future, it is advisable to use larger distributions where a lot of eyes look at, like Debian.

    This reminds me of the time when Debian broke their OpenSSL and for two years, ssh keys generated on Debian were basically taken from a pool of only 32k different keys…

    That time it was an honest mistake, but it would actually have been a very efficient attack too if it had been intentional. Imagine succeeding at getting your target to use private keys for ssh or ssl etc. from a tiny pool that makes something usually impossible to brute force suddenly trivial. And nobody noticed it for two years.