cheat.sheets:eject
# eject
# eject removable media
# You can also close the tray using certain options.
# Eject any available device
# CD-ROM, floppy disk, tape, or JAZ or ZIP disk
eject
# Eject a device by its name
eject /dev/cdrom
# Close the tray using eject command
eject -t
# Lock the hardware eject button
eject -i on
# Unlock the hardware eject button
eject -i off
tldr:eject
# eject
# Eject cds, floppy disks and tape drives.
# More information: <https://manned.org/eject>.
# Display the default device:
eject -d
# Eject the default device:
eject
# Eject a specific device (the default order is cd-rom, scsi, floppy and tape):
eject /dev/cdrom
# Toggle whether a device's tray is open or closed:
eject -T /dev/cdrom
# Eject a cd drive:
eject -r /dev/cdrom
# Eject a floppy drive:
eject -f /mnt/floppy
# Eject a tape drive:
eject -q /mnt/tape
$
cheat.sh