Hints for troubleshooting your host Operating System

Your Unix-like OS offers you many ways to find out what's going on. For example, which services are running? What ports are they listening on? How can I make test connections to them?