Quantcast
Channel: Tutorial – WiredWide
Viewing all articles
Browse latest Browse all 18

How to ping a website using OS X’s Terminal app

$
0
0

When you ping a website you actually test if a remote computer or server can be reached with an Internet connection, by sending and monitoring ICMP packets. It may be useful if you want to test it, or if you just want to have some fun. Mac OS X allows to do this by using the Terminal application and using a simple line of command.

First of all, open the Terminal application, located in Applications > Utilities. When you launch it, type this line of code

ping -c 7 wiredwide.com

The Terminal will start doing something like this:

The line of code I executed made 7 pings to WiredWide servers, while the Mac monitored in ms the time to get them.

At the end, you see how many packets got lost during the ping (in %). If the result is 0,0%, then the connection is working perfectly. You can also test other websites by changing the URL or the number of pings to do by changing the “7″ number.

Have fun!

 

In Italiano

Quando si fa un ping si testa la connessione a computer o dispositivo remoto per testarne la connessione, inviando e monitorando i pacchetti ICMP. Può risultare utile se volete testare quest’ultima, oppure per divertirvi un po’. OS X permette di eseguire questa operazione attraverso l’applicazione integrata Terminale, mediante l’uso di una semplice riga di codice.

Iniziate con l’aprire l’applicazione Terminale, situata in Applicazioni > Utility, e digitate:

ping -c 7 wiredwide.com

Il terminale eseguirà quindi il comando con un risultato simile a quello mostrato sopra.

La linea di codice che ho eseguito ha portato a termine 7 ping verso i server di WiredWide, monitorando i tempi di risposta in millisecondi. Al termine, potete vedere in percentuale quanti dei pacchetti sono stati persi. Più il valore è vicino allo zero, migliore sarà la connessione. Volendo si possono cambiare il numero di ping da eseguire (nel nostro caso 7) e il sito obiettivo (wiredwide.com).

Divertitevi!


Filed under: Tutorial Tagged: Mac, Terminal, Tutorial

Viewing all articles
Browse latest Browse all 18

Trending Articles