The ss command for Linux allows a user to list all listening ports on a Linux system. This command lists all listening TCP ports. [email protected] ~ $ ss -l -t State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 1 127.0.0.1:4101 *:* LISTEN 0 50 *:netbios-ssn *:* LISTEN 0 128 *:sunrpc *:* LISTEN 0 128 …

Alternatives to the ping and traceroute commands on a Linux system There are many alternatives to the ping and traceroute commands on a Linux system. The mtr command is one of them. This command will trace the route the network packets are taking to the target IP address. bash 06:42:02 Mon Jul 22 [[email protected] $ …

#!/usr/bin/perl   use warnings;   use Net::Ping;   # code source: http://www.perlmonks.org/?node_id=943892 # More: http://stackoverflow.com/questions/3960595/how-can-i-ping-a-host-with-a-perl-one-liner-with-netping   #$| = 1; print "Please type a host to check..n"; $host = <>;   if (length($host) < 3) { print "You did not type a host!n"; exit(0); }   my @proto = ("tcp", "udp", "icmp", "stream", "syn");   foreach …