How to securely erase a hard drive using Linux

Securely erasing a hard drive using Linux is a very easy task and can be done with a single line of code. The method can be used to erase any sort of storage medium which you can write data to.
Source: Ziobudda.net