Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I print only an IP address list of a traceroute run?

I don't want the web addresses like and their round trip times.

How do I get a "simple" traceroute from the terminal?

share|improve this question
You need to add an example of what output you're currently seeing and what you are looking for. This is too vague. – Stuart McLaughlin Sep 1 '11 at 8:21
up vote 6 down vote accepted

Are you looking for traceroute -n? From the man page:

   -n     Do not try to map IP addresses to  host  names  when  displaying

Edit: Comment added further requirement of removing round trip times.

To display everything except round trip times (sequence and IP address), CSV-formatted:

traceroute -n | tail -n+2 | awk '{ print $1 "," $2 }'
share|improve this answer
yes, but how do I out it to a csv file without the round trip times in ms? – zcqwevb Sep 1 '11 at 8:25
Pipe the output into awk to print only the IP columns. – 8088 Sep 1 '11 at 8:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.