1. Home
  2. Servers
  3. How to do a continuous ping in Windows, Linux, and MacOS

How to do a continuous ping in Windows, Linux, and MacOS

Continuous ping in Windows 7, 8, and 10

Step 1: Open the Windows command prompt. One way of doing this is by entering the key combination Windows + R and enter the command CMD.

Step 2: Enter the command line ping with the -t option and any address and confirm by clicking [Enter].

ping -t www.1-grid.com

For each incoming response packet, ping issues an entry on the standard output (stdout). The output comprises the IP address of the pinged computer, the size (in bytes) of the response packet, the response time in milliseconds (ms) as well as the TTL (Time to live).

To stop the ping, use [Ctrl] + [C].

If you stop the ping, the program displays a statistical summary (ping statistics) at its conclusion.

If needed, you can redirect the standard output to a text file. To do so, you add the appropriate operator (the greater-than symbol) as well as the file name (including the extension).

ping -t www.1-grid.com > c:pingtest.txt

If no file is found under the specified file name, it will be automatically generated. In the example presented above, we redirect the standard output to a txt file named pingtest.

Continuous ping in Linux

Step 1: Open the terminal for your Linux distribution in Ubuntu. One way to do this is with the key combination [Ctrl] + [Alt] + [T] (Genome, KDE).

Step 2: Enter the ping command and the target computer’s address in the command line and confirm by hitting [Enter].

ping 93.184.216.34

Continuous ping in Linux terminal

If you’d like to have the continuous ping issue a timestamp, use ping with the -D option. In this case, the output for each incoming response packet is preceded by a UNIX timestamp.

ping -D 93.184.216.34 > logfile.txt


Continuous ping with timestamp

If you don’t want to run ping on an endless loop in Linux, define the ping quantity with the -c option according to the following example.

Ping -c 4 93.184.216.34

Continuous ping in MacOS

Step 1: Open the terminal. You’ll find the Mac terminal under “Applications” in the subfolder “Utilities”.

Step 2: Run the ping command with the address of the target computer.

ping 93.184.216.34

Continuous ping in MacOS

In MacOS, you redirect the standard output according to the same procedure you would use in Linux and Windows.

ping 93.184.216.34 > logfile.txt

Run a ping test as you would in Linux with a user-defined quantity of echo request queries by choosing option -c.

Ping -c 4 93.184.216.34

Updated on October 19, 2023

Was this article helpful?

Related Articles

  • How to manually fix the base repository on EOL CentOS 6 to enable package installation via yum
  • KVM Migration instructions
  • How to Enable/Disable gzip compression in nginx on a Plesk Server
  • How to Locate Username and Password for Business VPS account
  • How to Add user on Windows Server 2016 Standard
  • How to Create user for Windows server R2 standard 2012

4617作文网易经是周易还是易经副食品商贸公司起名今年出生的女孩子起什么名好姓邹怎么起名字给宝宝起小名女取名打分周易测试早餐店面起名大全周易测名字算命算命五行八卦钱怎么起名破解不好的梦的办法周易六十四卦傅佩荣详解早点公司起名大全电力设计起名周公解梦大全查询梦境解析周公解梦梦见教书太极算命起名6画字周易算命取名免费薛起名男孩子名字大全起名字崔姓用米字起名小名八字算命免周公解梦梦见和小孩玩起名配送中心起名字 免费 周易周易起名宋派人黄 起名大全太极小鱼起名网给小弟起名字淀粉肠小王子日销售额涨超10倍罗斯否认插足凯特王妃婚姻让美丽中国“从细节出发”清明节放假3天调休1天男子给前妻转账 现任妻子起诉要回网友建议重庆地铁不准乘客携带菜筐月嫂回应掌掴婴儿是在赶虫子重庆警方辟谣“男子杀人焚尸”国产伟哥去年销售近13亿新的一天从800个哈欠开始男孩疑遭霸凌 家长讨说法被踢出群高中生被打伤下体休学 邯郸通报男子持台球杆殴打2名女店员被抓19岁小伙救下5人后溺亡 多方发声单亲妈妈陷入热恋 14岁儿子报警两大学生合买彩票中奖一人不认账德国打算提及普京时仅用姓名山西省委原副书记商黎光被逮捕武汉大学樱花即将进入盛花期今日春分张家界的山上“长”满了韩国人?特朗普谈“凯特王妃P图照”王树国3次鞠躬告别西交大师生白宫:哈马斯三号人物被杀代拍被何赛飞拿着魔杖追着打315晚会后胖东来又人满为患了房客欠租失踪 房东直发愁倪萍分享减重40斤方法“重生之我在北大当嫡校长”槽头肉企业被曝光前生意红火手机成瘾是影响睡眠质量重要因素考生莫言也上北大硕士复试名单了妈妈回应孩子在校撞护栏坠楼网友洛杉矶偶遇贾玲呼北高速交通事故已致14人死亡西双版纳热带植物园回应蜉蝣大爆发男孩8年未见母亲被告知被遗忘张立群任西安交通大学校长恒大被罚41.75亿到底怎么缴沈阳一轿车冲入人行道致3死2伤奥运男篮美国塞尔维亚同组周杰伦一审败诉网易国标起草人:淀粉肠是低配版火腿肠外国人感慨凌晨的中国很安全男子被流浪猫绊倒 投喂者赔24万杨倩无缘巴黎奥运男子被猫抓伤后确诊“猫抓病”春分“立蛋”成功率更高?记者:伊万改变了国足氛围奥巴马现身唐宁街 黑色着装引猜测

4617作文网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化