Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Basically I want to check if the computer is connected to the wifi (router) using a command line command. Ping is usually used to check internet connection, but I only want to know if is connected to the router, not about internet connection. I am using wicd as a network manager.

Thank you

share|improve this question
Ping your router then. – terdon Sep 4 '13 at 17:56
Thanks, but I believe iwconfig is faster, as the information will go on a loop (text status bar). – milarepa Sep 4 '13 at 18:08
up vote 2 down vote accepted

The easiest way would be to ping your router, something like ping

Alternatively, you can run ifconfig and check if you have an IP address. You can also do this with iwconfig and look for an ESSID.

share|improve this answer
Thank you. I will use iwconfig. – milarepa Sep 4 '13 at 18:05

I believe that Wavemon should work for you.


  • Ubuntu/Debian:

    # apt-get install wavemon 
  • Fedora/CentOS/Red Hat:

    # yum install wavemon

Starting to use # wavemon.

enter image description here

share|improve this answer
Thanks, but I was thinking to get the information as standard output, as I needed for an all text status bar. – milarepa Sep 4 '13 at 18:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.