What are the basic commands you would use in a Linux terminal to check network connectivity and open ports?