The linux utility dd is good for all kinds of things. The most common for me is using it to write zeroes to all the sectors on a hard drive, ie wiping a hard drive. Be sure you have lots of time this command will take awhile.
dd if=/dev/zero of=/dev/sda bs=1M
You can do alot more with it as well. Linux Questions post about dd.