For Windows you can download and install a program called win-eject that physically ejects the DVD-drive saving the user to fumble with the DVD-drive’s eject button and also prevents physical wear-off of the DVD-drive button (of my laptop).
Is there a program or a command in Linux that produces the same results as in Windows (…asks a newbie to Linux)?
Your desktop environment might offer the possibility also, in KDE (Plasma 5) e.g. you can just right-click on the inserted CD in dolphin’s Places or the file open dialog and choose “Eject xxx”.
K3b offers that option as well.
I think you misunderstood my question. I am not talking about eject = unmount, but have the dvd-drive pop out in order to take out the dvd from the dvd-drive.
For that, I sometimes type “eject” in a terminal. I always have a terminal open somewhere. But I seem to recall that the device notifier in KDE will eject when you unmount. I rarely use DVDs or CDs, so I might be mistaken.
I think you are confusing functionality. The eject command unmounts. If the device happens to have a release mechanism, it may also, as in KDE, operate the release mechanism. If you eject a USB, it unmounts it but does not physically release it as there is no mechanism for doing this.
Thanks to all your contributions. I am using the KDE desktop and I now found out that I can physically ecject a dvd using the command in “Device notification”.