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.

  • Sturgist@lemmy.ca
    link
    fedilink
    arrow-up
    2
    ·
    14 hours ago

    I just tried and it doesn’t seem to work for me.

    Wait…do I need an optical drive for this to work? I think I might have a plug in drive somewhere…

  • plum@lemmy.zip
    link
    fedilink
    English
    arrow-up
    78
    ·
    2 days 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.

  • DeuxChevaux@lemmy.world
    link
    fedilink
    arrow-up
    111
    ·
    3 days 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!

    • arthurpizza@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 days ago

      In the early 2000s, only my rich friends had cell phones. My roommate and I both had accounts on each other’s machines so we could telnet into them on the same local network.

      We used to do this all the time to each other. It was funny to us 25 years ago. It’s still funny now.

  • horse_battery_staple@lemmy.world
    link
    fedilink
    arrow-up
    40
    arrow-down
    2
    ·
    3 days 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.

  • communism@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    2 days ago

    I still have a disk drive but eject doesn’t seem to affect it since for some reason I don’t have a /dev/cdrom. I just checked with the physical eject button on the drive and it is at least still physically working—the tray ejects! I don’t have any optical media to test if the drive still works to read CDs though

  • mumblerfish@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    3 days 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.

  • philluminati@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    3 days ago

    I used to play with Linux at college back in 2002 and install the distros on the front of magazines. Eject opens the cd drive but did you know it hangs unless you umount the mount point first? Back in those days everything had to be painfully mounted and unmounted.