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

If let's say I use ping command in the form of ping -p 'xyz' can I read the pattern xyz on Are there more ways in which you transmit data using ping command?

share|improve this question

migrated from Jan 1 '13 at 13:46

This question came from our site for professional and enthusiast programmers.

What shell are you running this from? What OS are you using? And in what language do you want to retrieve the xyz parameter? Please elaborate! – Oldskool Jan 1 '13 at 12:33
I'm using linux, using bash. Language does not matter as such. – gizgok Jan 1 '13 at 17:47

If you run

tcpdump -A icmp

on you'll see the ping packets and their data.

Read the man page for ping to see all the options.

share|improve this answer
Or any other network sniffer; e.g., Ethereal. – Scott Jan 2 '13 at 0:21
I agree with Barmar completely. I would have said this as well, especially the last sentence. All you literally have to do is the following: – Eric Milliot-Martinez Aug 23 '15 at 3:45

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.