Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-19-2005, 06:18 AM   #1
LQ Newbie
Registered: Sep 2005
Location: Pakistan
Posts: 19

Rep: Reputation: 0
ping -c not working properly

i am using linux kernel 2.4.25 ,i am using command ping website name which is working while when i use the command ping -c website name it give msg bad packet size and when i write command ping -s website name it also doesnt work and give me the list of options we can use the ping.
Old 09-19-2005, 06:27 AM   #2
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
You need to put a number after -c ( count ) .
ping -c 3
Old 09-19-2005, 06:28 AM   #3
Bruce Hill
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
Welcome to LQ!

The switch "-c" stands for count, so you must use a number, i.e.:
bruce@titus:~$ ping -c
ping: bad number of packets to transmit.
bruce@titus:~$ ping -c1
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=239 time=70.4 ms

--- ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 70.472/70.472/70.472/0.000 ms
The switch "-s" stands for size. In a terminal issue "man ping" and read the options.

Last edited by Bruce Hill; 09-19-2005 at 06:30 AM.
Old 09-19-2005, 06:31 AM   #4
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
To elaborate a bit, if you're seeking a continous ping, use
with no other arguments.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
openMosix not working properly DAChristen29 Linux - Networking 0 12-30-2004 07:03 PM
X not working properly. MylesCLin Linux - Software 1 09-15-2004 10:46 AM
SUID not working properly everythingand2 Linux - General 1 02-27-2004 12:42 PM
Can't get NFS working properly Scruff Linux - Networking 8 02-08-2004 10:55 PM
virtusertable not working properly Manuel-H Linux - General 0 04-30-2003 08:38 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration