How to stop ping output? [closed]

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.


Solution 1:

Press Ctrl+C or Ctrl+|.

Solution 2:

Ctrl+Shift+C works too if you have shortcuts enabled in your terminal. (ubuntu)