News for hackers. Stuff that matters.
Re:Undergrad thought he had mastered Unix in weeks. Then he ... by jerf on Monday November 18, 2024 @09:51AM (#42172787)
It isn't anymore. From man rm:

     --preserve-root[=all]
         do not remove '/' (default); with 'all', reject any 
         command line argument on a separate device from its parent
The era of computing that the story claims to come from sounds like the late 1990s. By that time UNIX could have had that fairly easily; the resources were available. However at the time we were not that far off from the era where every byte counted, and there were a lot of people who had been programming for decades who were still in the mindset of "every byte is precious". In that era we still had the last few people running around claiming that writing code in anything other than straight, raw assembler was a waste of resources, though they were fading fast by that point. Anyone who has learned programming in an era of gigabytes may not understand just how expensive once upon a time even so much as a "nice error message" was, and every disk block of code that was going on to every system was a disk block unavailable for the user. UNIX used to be a lot sharper-edged than it is today.
Re:Undergrad thought he had mastered Unix in weeks. Then he ... by mmh0000 on Monday November 18, 2024 @11:48AM (#42174190)
That's a lot of needless typing; when you need to uninstall something, you can still use globbing to work around that annoying error message:

  # rm -rf /*
</semi-sarcasm>