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

Linux

49051 readers
864 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.

top 50 comments
sorted by: hot top controversial new old
[–] DeuxChevaux@lemmy.world 155 points 1 week 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!

[–] Anarki_@lemmy.blahaj.zone 18 points 1 week ago

That is fantastic.

[–] art@lemmy.world 9 points 1 week 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.

[–] plum@lemmy.zip 123 points 1 week ago (5 children)

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.

[–] lemming741@lemmy.world 26 points 1 week ago

VPS providers hate this one trick

[–] passiveaggressivesonar@lemmy.world 25 points 1 week ago (2 children)

I was wondering why they still sold servers with disk drives

[–] HiddenLayer555@lemmy.ml 23 points 1 week ago (1 children)

For deploying your sick playlist to production, obviously!

No not mine, thermal performance always goes haywire 😔

[–] plum@lemmy.zip 6 points 1 week ago

I haven't worked in a data center in years, so I don't know the current norm for server hardware.

[–] thingsiplay@beehaw.org 7 points 1 week ago

Modern problems require modern solution.

load more comments (2 replies)
[–] bjoern_tantau@swg-empire.de 92 points 1 week 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.

[–] eldavi@lemmy.ml 16 points 1 week ago

i envy you. lol

[–] Khrux@ttrpg.network 14 points 1 week 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.

[–] markstos@lemmy.world 79 points 1 week ago (2 children)
[–] hakunawazo@lemmy.world 4 points 1 week ago

The finger guillotine.

[–] teawrecks@sopuli.xyz 3 points 1 week ago

Bologna storage.

[–] horse_battery_staple@lemmy.world 72 points 1 week 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.

[–] k_rol@lemmy.ca 26 points 1 week ago (1 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.

[–] utopiah@lemmy.ml 6 points 1 week ago (1 children)

I'm sure you do, you little scum! /s

load more comments (1 replies)
[–] Courantdair@jlai.lu 59 points 1 week 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 ✨

[–] savedbythezsh@sh.itjust.works 6 points 1 week ago* (last edited 1 week ago)

You could've made music out of ejecting/retracting those all at different times!

Would've actually been fantastic distributed systems practice, synchronizing all of those to tight tolerances of music across a network connection...

[–] akincisor@sh.itjust.works 34 points 1 week ago (1 children)

Disk... drive?

what-year-is-it.jpeg

[–] MonkderVierte@lemmy.ml 15 points 1 week ago (2 children)

The year to backup (rip) your DVDs.

[–] akincisor@sh.itjust.works 3 points 1 week ago

I long ago moved to a pair of 4TB hdds and recently upgraded to a pair of 16TBs

load more comments (1 replies)

tilts head

plugs in USB optical drive

eject

pop

hehe

push tray back in

eject

pop

hehehe

[–] Squiddlioni@kbin.melroy.org 27 points 1 week 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.

[–] furrowsofar@beehaw.org 5 points 1 week ago (1 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.

[–] swab148@lemm.ee 5 points 1 week ago (1 children)

I want it to work for all drives. Sometimes I just wanna launch my SSD across the room for shits and giggles, is there a bash command for that yet?

[–] CapillaryUpgrade@lemmy.sdf.org 3 points 1 week ago (1 children)

No, sadly not. Maybe it's implemented in Fish?

load more comments (1 replies)
[–] HakFoo@lemmy.sdf.org 19 points 1 week ago (1 children)

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

[–] Quazatron@lemmy.world 13 points 1 week ago (3 children)

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.

[–] GregorGizeh@lemmy.zip 11 points 1 week ago (1 children)

For the next storage revolution go with the opposite of your prediction maybe

load more comments (1 replies)
[–] markstos@lemmy.world 3 points 1 week ago (1 children)

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.

load more comments (1 replies)
load more comments (1 replies)
[–] Feathercrown@lemmy.world 19 points 1 week ago (1 children)
load more comments (1 replies)
[–] mumblerfish@lemmy.world 17 points 1 week 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.

[–] wuphysics87@lemmy.ml 13 points 1 week ago

I need to go put my DVD drive back in my tower to try this!

[–] Reddfugee42@lemmy.world 12 points 1 week ago (1 children)

Those are discs not disks kiddo

[–] ChaoticNeutralCzech@lemmy.ml 5 points 1 week ago (1 children)

I was wondering about OP's soft-eject floppy drive. Seems quite retrofuturistic.

load more comments (1 replies)
[–] shirro@aussie.zone 12 points 1 week ago* (last edited 1 week ago) (1 children)

There is a whole world of obsolete stuff nobody will ever do with a linux system anymore. Terminal servers with lots of serial terminals or modems for a BBS. Making a fax server, IVR, digital answering machine for analog land lines. Using removable optical or magnetic media. Recording broadcast tv. SCSI, Firewire. It is interesting to imagine what from today will be obsolete in a few years.

Magnetic media is still king of price to capacity (Hard drives) and I literally do still record broadcast television on one of my linux boxes

[–] bad_news@lemmy.billiam.net 11 points 1 week ago

Man, this takes me back, I had totally forgotten!

[–] philluminati@lemmy.ml 11 points 1 week 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)
[–] adrianhooves@lemmy.today 6 points 1 week ago

woa what the frick!! that actually scared me it's like 2001 space odyssey type of stuff

[–] communism@lemmy.ml 5 points 1 week ago (1 children)

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

[–] crater2150@feddit.org 3 points 1 week ago (3 children)

Try eject /dev/sr0, that should be your disk drive if it is attached via SATA or USB. /dev/cdrom is usually just a symlink.

load more comments (3 replies)
[–] netvor@lemmy.world 4 points 1 week ago (1 children)

lemme guess.. and inject would close it again?

[–] hellfroze@lemmy.world 6 points 1 week ago* (last edited 1 week ago)

eject -t

There's also eject -T which is a toggle.

[–] Kynn@jlai.lu 4 points 1 week ago

Sorry, my what ? Are you talking about relics of the past ? ;D

[–] JoeBidet@lemmy.ml 3 points 1 week ago

don't use it if you're flying a plane, though!

load more comments
view more: next ›