Ubuntu – How to eject a CD/DVD from the command line

command linedvdeject

I've just right clicked on the DVD icon in the Unity Launcher in order to eject it, but instead of hitting the 'Eject' button, I missed and hit the 'Unlock from Launchpad' option instead.

How do I go about ejecting the disk from the drive now that the Launcher option is missing?

Best Answer

In order to eject a disk from the drive, whether it's a CD or a DVD, open a terminal and simply execute the eject command.

Related Question