commands.sh

eject

linux

Eject CDs, floppy disks, tape drives, and USB sticks.

More info →

Options (6)

-d, --defaultboolean

Display the default device

Example: eject {{[-d|--default]}}
-T, --traytoggleboolean

Toggle whether a device's tray is open or closed

Example: eject {{[-T|--traytoggle]}} {{/dev/cdrom}}
-r, --cdromboolean

Eject a cd drive

Example: eject {{[-r|--cdrom]}} {{/dev/cdrom}}
-f, --floppyboolean

Eject a floppy drive

Example: eject {{[-f|--floppy]}} {{/mnt/floppy}}
-q, --tapeboolean

Eject a tape drive

Example: eject {{[-q|--tape]}} {{/mnt/tape}}
-i, --manualejectboolean

Set whether the physical eject button is [i]gnored (`on` prevents ejecting)

Example: eject {{[-i|--manualeject]}} {{on|off}}

Examples (8)

Display the default device

eject [-d|--default]

Eject the default device

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|--traytoggle] /dev/cdrom

Eject a cd drive

eject [-r|--cdrom] /dev/cdrom

Eject a floppy drive

eject [-f|--floppy] /mnt/floppy

Eject a tape drive

eject [-q|--tape] /mnt/tape

Set whether the physical eject button is [i]gnored (`on` prevents ejecting)

eject [-i|--manualeject] on|off
made by @shridhargupta | data from tldr-pages