mac os x eject disk from commandline Posted on June 13, 2016 by coder To eject a disc or media from the command line on Mac # drutil tray open # drutil eject 1234 To eject a disc or media from the command line on Mac# drutil tray open # drutil eject