How can you check if a certain port is open on a Linux PC?

How to check for open ports when you are using a Linux machine.