Lock the hardware eject button of the cdrom

$ eject -i 1 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


by David Winterbottom (codeinthehole.com)



URL: http://feedproxy.google.com/~r/Command-line-fu/~3/_ZEuVoJP8nE/lock-the-hardware-eject-button-of-the-cdrom


Convert decimal numbers to binary

Image by Getty Images via Daylife

There is a calculator called bc that works in the command line. So if you need a quick calculator function in the command line then you could write some functions that will do the trcik for you. Here is an example:

function convBase { echo \"ibase=$1; obase=$2; $3\" | bc; }

so, if you want to convert decimal number to hex number then you could type

convBase 10 16 16


Xoost – Search engine

Image via CrunchBase

Xoost is a community search engine. From Xoost page:

Imagine you are searching for a topic related to your favourite Music, Travel destinations, Events. With Xoost you will benefit from the exponential value of doing it much more productively together with your friends or family members. It’s all about sharing Search skills & Knowledge.

Xoost diaplays result from Google, Yahoo and Bing all in one page. If you like a page you can mark it or share it with others. So this is one good feature that is quite useful. Also there is a Search extension available for firefox for Xoost.