Skip to content

Commands

mtr

mtr is similar to traceroute with more stats and it does not display the gateway and routerIP address.

Example:

traceroute cloudflare.com
mtr cloudflare.com

dig

dig is used to query DNS.

Example:

ubuntu@dev-vm:~$ dig +short cloudflare.com
104.16.133.229
104.16.132.229

It is similar to nslookup but it gives a very short output with just the nameservers.

nmap

nmap lists which ports are open on the host.

Example:

sudo nmap -sS -F 192.168.x.x/24