eject

Eject cds, floppy disks and tape drives. More information: <https://manned.org/eject>.

Install

All systems
curl cmd.cat/eject.sh
Debian Debian
apt-get install eject
Ubuntu
apt-get install eject
Alpine
apk add util-linux
Arch Arch Linux
pacman -S util-linux
image/svg+xml Kali Linux
apt-get install eject
CentOS
yum install eject
Fedora
dnf install util-linux
Windows (WSL2)
sudo apt-get update sudo apt-get install eject
OS X
brew install eject
Raspbian
apt-get install eject
Docker
docker run cmd.cat/eject eject powered by Commando

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

© tl;dr; authors and contributors