this post was submitted on 08 Jan 2025
224 points (95.9% liked)

Linux

49176 readers
649 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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.

(page 2) 16 comments
sorted by: hot top controversial new old
[–] [email protected] 57 points 2 weeks ago (1 children)

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 ✨

load more comments (1 replies)
[–] [email protected] 17 points 2 weeks 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.

[–] [email protected] 33 points 2 weeks ago (3 children)

Disk... drive?

what-year-is-it.jpeg

load more comments (3 replies)
[–] [email protected] 19 points 2 weeks ago (6 children)

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

load more comments (6 replies)
[–] [email protected] 157 points 2 weeks ago (2 children)

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!

load more comments (2 replies)
[–] [email protected] 27 points 2 weeks ago (1 children)

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.

[–] [email protected] 5 points 2 weeks ago (3 children)

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.

load more comments (3 replies)
[–] [email protected] 79 points 2 weeks ago (2 children)
load more comments (2 replies)
[–] [email protected] -2 points 2 weeks ago

For a similar tool for windows, there is: https://www.grc.com/wizmo/wizmo.htm

[–] [email protected] 91 points 2 weeks ago (2 children)

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

[–] [email protected] 14 points 2 weeks 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.

[–] [email protected] 15 points 2 weeks ago

i envy you. lol

[–] [email protected] 11 points 2 weeks ago (1 children)

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.

load more comments (1 replies)
[–] [email protected] 70 points 2 weeks ago (1 children)

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.

[–] [email protected] 25 points 2 weeks ago (2 children)

I found out about this recently and I love it. I don't know why I like to be insulted, it makes me laugh.

load more comments (2 replies)
load more comments
view more: ‹ prev next ›