LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 07-29-2007, 01:55 PM   #1
nahawand
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Rep: Reputation: 0
Stop the ping command!


Hi,

I have slackware and to test my connection, I typed: ping www.google.ca

How do I stop it? I tried everything that normally would work. Q, q, escape, shift escape, ctrl shift backspace...nothing works..

How do I stop the ping command in slackware?
 
Old 07-29-2007, 01:59 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Press the control key and the letter c at the same time.
 
Old 07-29-2007, 02:43 PM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,884

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
Quote:
Originally Posted by nahawand
How do I stop the ping command in slackware?
I know this doesn't help once you have made the mistake, but it is worth noting that you can limit the number (& rate) of pings when you issue the ping command. So:

ping -c 10 www.google.ca

would set the ping count to 10, so it would only do 10 pings and then stop. And:

ping -i 5 www.google.ca

would set a ping interval of 5 seconds. And you can combine these:

ping -c 1000 -i 10 www.google.ca

would send a ping once every 10 seconds for 1000 pings. In other words "I'd quite like it to keep pinging at a relatively slow rate, but I don't want it to go on forever, just in case I forget about it". Useful if you are waggling all the CAT 5 connectors to see if an intermittent in one of those is causing your network to fail.

If you are round the back of your machine, examining the way entropy turns organised cables into knotted spaghetti at the time, the -a switch (audible) may be worth looking at too. That way, you'll really get to hear why it is called 'ping'. All of this, and much else, brought to you by courtesy of 'man pages'!
 
Old 07-29-2007, 03:05 PM   #4
nahawand
LQ Newbie
 
Registered: Jul 2007
Posts: 16

Original Poster
Rep: Reputation: 0
Stress_Junkie, thank you for the fast response. And thank you for the detailed explanation salasi.

Quote:
All of this, and much else, brought to you by courtesy of 'man pages'!
Yes. I deserve that! Alas though, when I installed Slackware, I only installed the A and N diskettes. Thats why whenever i type: man command, i get: command not found.

I'll have to install the diskette with the man pages.

Thanks guys.
 
Old 07-30-2007, 01:23 AM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,884

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
Quote:
Originally Posted by nahawand
Yes. I deserve that! Alas though, when I installed Slackware, I only installed the A and N diskettes. Thats why whenever i type: man command, i get: command not found.

I'll have to install the diskette with the man pages.

Thanks guys.
Sorry, it wasn't really intended as a criticism, but a gentle bit of fun. Guess I'll have to get used to using these things. More seriously, I couldn't cope with a system without man pages and that's how I've learnt most of the specifics that I've learnt, so I would definitely say that you should install the man pages, if you can.
 
  


Reply


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
Simple question about command syntax ping/log ping results ohalnet Linux - Networking 1 07-25-2006 04:46 AM
ping - How do I stop it? michshelly Linux - Newbie 7 04-26-2006 04:24 PM
how can i stop ping reply? Guru Mind Linux - Security 22 02-07-2006 05:24 PM
To Stop Ping Request Which Way Is Good nirav.jani Linux - Security 18 01-06-2005 09:46 AM
ping -f makes OpenBSD stop working ? markus1982 *BSD 2 05-25-2003 09:05 AM


All times are GMT -5. The time now is 02:28 PM.

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