How to check if port is currently being used in Linux

To check if a port is currently being listened in linux use command #netstat -an | grep