Open/Close the CD tray the cooler way

I was reading the eject man page & found this cool info which I didnt knew earlier.

Well only issuing the eject command will unmount the device & eject the tray,

 swapneel@ubuntu:~$ eject

Now since you have the tray open the below command with the option -t will close the tray

swapneel@ubuntu:~$ eject -t

 There is one more nice option for eject, the -T option

 swapneel@ubuntu:~$ eject -T

The above will close the tray if its open or open the tray if its closed. 


About this entry