commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
This command will lock the hardware eject button of your cdrom drive. Some uses are:
1: If you have a toddler and has discovered the cdrom button
2: If you are carrying a laptop in a bag or case and don't want it to eject if the button is inadvertently pressed.
To unlock the button use:
eject -i 0
There are 3 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.