Using the command line

Learn the (Unix / Linux / OS X) command line

Read sections 1 through 6 of this guide

Also check out this tutorial