I need to ping Google to see my Internet status. In Windows we use:
ping -t [websitename]
In the run menu. How do I do this on Ubuntu?
I need to ping Google to see my Internet status. In Windows we use:
ping -t [websitename]
In the run menu. How do I do this on Ubuntu?
As far as I know, on Windows by default
ping somesite.net
will send 4 ICMP echo request packets to thesomesite.net
. As you have used the-t
option i.e.ping -t somesite.net
, this will run indefinitely on Windows i.e. it will keep on sending ICMP echo request packets until you quit it yourself.On Ubuntu
ping soemsite.net
will run indefinitely i.e. it is same asping -t soemsite.net
for Windows. On the other hand if you want to send a certain number of packets you can use the-c
option. E.g., to send 4 ICMP echo request packets you need to open the Terminal with Ctrl+Alt+T and run:Also any packet
ping
sends is highly configurable on Ubuntu. Checkman ping
to get more ideas.Please open a terminal Ctrl+Alt+T. Enter:
If you get ping returns, then you are connected. For example:
chili555's answer already covers the question, however if you're trying to debug a connection issue
traceroute
is way more verbose (you'll have to enable the Universe repository in order to install it):Sample output of
traceroute askubuntu.com
on my machine:If you merely wish to test if your connection is working, a simple way is to use
fping
with example.com.fping
returns 0 on success; see the manual for details on return codes.