I dont know much at all about recording music.

but what would be some good equipment to start of with just recording guitar parts with onto the computer? I would like to create rhythm and lead, but its a bit difficult without any recording equipment. Is there a certain program/ cable that i can just plug my guitar or amp directly into the computer and mix using the computer?