System Grab Bag

View all TLDR pages from Linux (or from all pages)

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}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.