Bring a large pot of salted water to a boil.
Add the spaghetti or linguine and cook according to package instructions until al dente.
While the pasta cooks, heat olive oil in a large skillet over medium heat.
Add minced garlic and sauté for 1-2 minutes until fragrant but not browned.
Grate the zest of the lemon and add it to the skillet, stirring well.
Once the pasta is cooked, reserve 1 cup of pasta water and drain the rest.
Add the drained pasta to the skillet, tossing it with the garlic and lemon zest.
Pour in lemon juice, adding reserved pasta water gradually until desired consistency is reached.
Season with salt and pepper to taste.
Serve immediately, garnished with fresh parsley and optional Parmesan cheese.