Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
is there a ping -t option in linux as there is in dos?
I'm afraid not. The *nix ping sends packets continuously, but does not print the statistic until you terminate (usually with Ctrl-C).
Anyway, using options you may control the number of packets to send or set a specific amount of time after which ping terminates without human intervention.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
Quote:
Originally Posted by colucix
I'm afraid not. The *nix ping sends packets continuously, but does not print the statistic until you terminate (usually with Ctrl-C).
Anyway, using options you may control the number of packets to send or set a specific amount of time after which ping terminates without human intervention.
not entirely true
Ctrl+| (ctrl + pipe symbol) will show an abreviated version of the summary
Quote:
Originally Posted by http://www.thegeekstuff.com/2009/11/ping-tutorial-13-effective-ping-command-examples/
Ping Example 13. Shorter statistics with SIGQUIT
While ping is printing the individual packet status, when you want to view the shorter statistics you can use this technique.
Pressing CTRL+| (Control key followed by pipe symbol) for the shows the summary in between, and continues with it packet sending and receiving process.
$ ping -w 100 localhost
Code:
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=10 ttl=64 time=0.021 ms
64 bytes from localhost (127.0.0.1): icmp_seq=11 ttl=64 time=0.022 ms
11/11 packets, 0% loss, min/avg/ewma/max = 0.020/0.022/0.022/0.024 ms
64 bytes from localhost (127.0.0.1): icmp_seq=12 ttl=64 time=0.021 ms
64 bytes from localhost (127.0.0.1): icmp_seq=13 ttl=64 time=0.022 ms
64 bytes from localhost (127.0.0.1): icmp_seq=14 ttl=64 time=0.021 ms
64 bytes from localhost (127.0.0.1): icmp_seq=15 ttl=64 time=0.021 ms
19/19 packets, 0% loss, min/avg/ewma/max = 0.020/0.022/0.022/0.024 ms
64 bytes from localhost (127.0.0.1): icmp_seq=31 ttl=64 time=0.022 ms
64 bytes from localhost (127.0.0.1): icmp_seq=32 ttl=64 time=0.022 ms
32/32 packets, 0% loss, min/avg/ewma/max = 0.020/0.022/0.022/0.027 ms
64 bytes from localhost (127.0.0.1): icmp_seq=33 ttl=64 time=0.023 ms
pint -t in Dos just does a ping until you send a break command. Linux does this without any options. so In Linux there is no need for -t or any other option to get the same effect.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
again not entirely true, although the default options are usually adaquate there are circumstances where they are not (although i admit i can't think of any off hand)
as for ping -t on windows linux you would have to do the OPPOSITE, that is specifiy a set number of pings before it stops
which would be
Code:
ping -c *number of pings to send*
especially useful if operating in a circumstance where sending a sigkill may be difficult
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.