Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I run ping <hostname> command in console and it now outputs hundreds of those rows now (icmp_seq=526 ttl=64 time=0.026 ms), icmp_seq is like 500 or more now. How to stop it? (linux debian) Should i just close console?

Never mind, it stopped on 532. Hahah.

share|improve this question
You can also limit the count: ping -c 10 localhost – jscott May 11 '11 at 13:23
in my cmd , this works : ping -n 10 localhost , -c is says BAD OPTION -c. – sqlchild Sep 26 '13 at 7:08
ping -n 10 is typical of microsoft ping. ping -c 10 is typical of modern linux (e.g. where it comes from iputils package for redhat or debian). The foundational ping by Mike Muuss had the count as an optional third argument. The command line details of the 1933 Marjorie Flack version are unclear. – mc0e Sep 3 '15 at 12:46
up vote 30 down vote accepted

Press Ctrl+C or Ctrl+|.

share|improve this answer
Yea, I guess i just did that. Thanks! – Rihards May 11 '11 at 13:21

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.