Checking Port Status with Command Line: A Comprehensive Guide