cook spaghetti according to package instructions in a pot of well-salted boiling water. meanwhile, in a large skillet set over medium heat, add 1/4 cup of the olive oil. when the oil begins to shimmer, add three-quarters of the garlic and 1/2 teaspoon salt.