• 0 Posts
  • 3 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
    ·
    12 days 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 had one of those laptops (a PowerBook). Yes, it had two slots that could be used for batteries. But that meant taking out the CD drive. Modern laptops don’t have that anymore so I’m not sure where the room for another battery would come from. The other thing is, it lasted at best 4-5 hours on one battery when doing light work. Its modern counterparts last 10-15 hours on one battery.

    The same thing actually happened with phones. But now we literally can’t spend half a minute not looking at them and we also play energy hungry games on them etc. You can still get a phone with replaceable battery though, e.g. Fairphone or Volla.