We can run the above command on our local system to display all the network interfaces it has.
By default only the common - most used - TCP ports are scanned. To scan the common UDP ports, we use the below command:
To display the common open TCP ports and the protocols used, we use the below command:
To display the operating system of the machine scanned, we use the below command:
To scan all the ports, and not only the default ones, we run the below command:
To also display the version of the service associated with the open ports, we use the below command:
To scan all the IP addresses of a network, so we would know which IP addresses are used, we would use the below command, for example, for the IP addresses ranging from "192.168.1.1" to "192.168.1.254" we run the below command: