IP Trace Command In Bash

Q. What is the ip trace command in bash? How do I trace IP address in Linux / UNIX bash shell prompt?

A. You can use any one of the following command in bash to trace IP address and other stuff: a] traceroute - It tracks the route packets take across an IP network on their way to a given host. It utilizes the IP protocol’s time to live (TTL) field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway along the path to the host.

b] tracepath - It traces path to destination discovering MTU along this path. It uses UDP port port or some random port. It is similar to traceroute, only does not not require uperuser privileges. Option -c causes tracepath to use the return address instead of the reply type (connection refused) to determine when to stop.