1Bring a large pot of salted water to a boil. Add the pasta and cook according to the package instructions until al dente. Drain and set aside.
While the pasta is cooking, finely chop the onion and garlic.
In a large pan, heat the olive oil over medium heat. Add the chopped onion and garlic, and sauté until the onion becomes translucent and the garlic is fragrant.
Add the cooked pasta to the pan and toss to combine with the onion and garlic.
Grate the cheese and add it to the pasta, stirring until the cheese is melted and evenly coats the pasta.
Season with salt to taste, and serve immediately.