I’ve been using linux for more than a decade at this point, but in all that time I’ve rarely had a disk drive. The fact that this command exists and is just, one of the core utils included with your distro along with su and kill and mount and more is just… so beautiful. 10 years amore with this OS and I’m still learning things that the elders in the audience are snickering at me for only learning 5 minutes ago while they were popping their disk trays open with a single command back when disk drives were a non optional component.

  • plum@lemmy.zip
    link
    fedilink
    English
    arrow-up
    74
    ·
    13 hours ago

    This command was very useful for quickly finding a server in a row of hundreds of identical servers. No need to read the labels or look up which rack it’s in. Just log in remotely, just use ‘eject’, and then walk down the row to the server that has its tray out.

  • Courant d'air 🍃@jlai.lu
    link
    fedilink
    arrow-up
    42
    ·
    13 hours ago

    Back in networking classes we used to have entire rooms of replicated machines, all with contiguous addresses and same logins. We wrote a script to ssh into every computer of the room and eject and retract all the disk drives at the same time, it was wonderful ✨

  • DeuxChevaux@lemmy.world
    link
    fedilink
    arrow-up
    114
    ·
    16 hours ago

    Very helpful command it was for those, whose modem had to be rebooted daily back in the day: Have a cron-job open the tray, which in turn was placed strategically so that it would hit the reset button of the modem, then close the tray. And voilà; automatic reboot of the modem. Robotics at its finest!

  • mumblerfish@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    15 hours ago

    They should make a usb-port with a spring in it which can be released with eject. Until then I have to be content with just making sound effects when I run eject on other devices.

  • HakFoo@lemmy.sdf.org
    link
    fedilink
    arrow-up
    16
    ·
    16 hours ago

    If you have a LS-120, it will eject the floppy disc like you were on dome fancy-pants Macintosh!

    • Quazatron@lemmy.world
      link
      fedilink
      arrow-up
      11
      ·
      13 hours ago

      I’ve never encountered another LS-120 user before. When it came out I assumed it would be the future, because 120 megabyte freaking laser assisted floppy, am I right? Turns out I was very much mistaken, and CD-R took over.

      I also made the same mistake regarding CF vs SD cards.

      • markstos@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        5 hours ago

        120 MB? That’s more than a ZipDisk!

        I knew I attended a well-funded modern college because all the computers had been upgraded with ZipDrives.

        • Quazatron@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          33 minutes ago

          Yep, Zip drives only had 100MB, the disks were clunky and were prone to get the Click of Death (not that LS-120 disks were any better in that sense, of course).

  • Björn Tantau@swg-empire.de
    link
    fedilink
    arrow-up
    71
    ·
    21 hours ago

    Ah, the good old days of sshing into a family member’s computer and trolling them by constantly opening and closing the drive.

    • Khrux@ttrpg.network
      link
      fedilink
      English
      arrow-up
      10
      ·
      15 hours ago

      It it to wait 30 mins then do it every 10, and pop it in startup, those were the days.

      The other was Free_Cupholder.EXE. I miss disk drives for this reason more than for actual use.

  • horse_battery_staple@lemmy.world
    link
    fedilink
    arrow-up
    64
    ·
    21 hours ago

    You can configure sudo, used to elevate the privileges of a command, to insult users when they type in an incorrect password.

    To do so, edit the sudoers file with a tool called visudo, which edits and validates modifications to the sudo configuration file.

    sudo visudo

    Near the top, add a line that reads:

    Defaults insults

    Save and close the file.

  • Squiddlioni@kbin.melroy.org
    link
    fedilink
    arrow-up
    26
    ·
    19 hours ago

    Almost 20 years ago I convinced my high school library to let me install Debian on one of the computer groups. I found the “eject” command, and wrote a script that just invoked it with an argument to close the tray. I named that script “inject”. Being high schoolers, my friends and I made scripts to “eject” and “inject”, along with various beeps, and named the scripts suggestive and tawdry things. We all had a good giggle setting the systems off on their little routines and walking away.

    • flatbield@beehaw.org
      link
      fedilink
      English
      arrow-up
      4
      ·
      17 hours ago

      Eject is not just for CDs. You still have to eject any hot mount physical media. Sadly the eject command only works in some cases. I do not think it works for hot mount SATA dives for example.